- Inherits From:
- NSObject
- Declared In:
- EDStringScanner.h
Synopsis:
unichar EDStringScannerEndOfDataCharacter;
Description:
Returned by getCharacter and peekCharacter when the scanner has reached the end of the string.
NSString *string;
unichar *buffer;
unichar *charPointer;
unichar *endOfBuffer;
unsigned int bufferOffset;
string All instance variables are private. buffer charPointer endOfBuffer bufferOffset
Creating string scannersQuerying the scanner
- + scannerWithString:
- - initWithString:
- - getCharacter
- - peekCharacter
- - scanLocation
+ (id)scannerWithString:(NSString *)aString
Creates and returns a scanner ready to scan aString.
- (unichar)getCharacter
Returns the character at the current scan location and advances the latter. Returns EDStringScannerEndOfDataCharacter
when the end of the string has been reached.
- (id)initWithString:(NSString *)aString
Initialises a newly allocated scanner to scan aString.
- (unichar)peekCharacter
Returns the character at the current scan location. Returns EDStringScannerEndOfDataCharacter
when the end of the string has been reached.
- (unsigned int)scanLocation
Returns the current scan location.