Instance Property

scanLocation

The character position at which the receiver will begin its next scanning operation.

Declaration

@property NSUInteger scanLocation;

Discussion

Raises an NSRangeException if index is beyond the end of the string being scanned.

This property is useful for backing up to rescan after an error.

Rather than setting the scan location directly to skip known sequences of characters, use scanString:intoString: or scanCharactersFromSet:intoString:, which allow you to verify that the expected substring (or set of characters) is in fact present.

See Also

Configuring a Scanner

caseSensitive

Flag that indicates whether the receiver distinguishes case in the characters it scans.

charactersToBeSkipped

Character set containing the characters the scanner ignores when looking for a scannable element.

locale

The locale to use when scanning.