home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OpenStep (Enterprise)
/
OpenStepENTCD.toast
/
OEDEV
/
DEV.Z
/
NSScanner.h
< prev
next >
Wrap
Text File
|
1996-09-11
|
1KB
|
46 lines
/* NSScanner.h
Simple scanning on strings
Copyright 1994-1996, NeXT Software, Inc. All rights reserved.
*/
#import <Foundation/NSObject.h>
@class NSString, NSCharacterSet, NSDictionary;
@interface NSScanner : NSObject <NSCopying>
- (NSString *)string;
- (unsigned)scanLocation;
- (void)setScanLocation:(unsigned)pos;
- (void)setCharactersToBeSkipped:(NSCharacterSet *)set;
- (void)setCaseSensitive:(BOOL)flag;
- (void)setLocale:(NSDictionary *)dict;
@end
@interface NSScanner (NSExtendedScanner)
- (NSCharacterSet *)charactersToBeSkipped;
- (BOOL)caseSensitive;
- (NSDictionary *)locale;
- (BOOL)scanInt:(int *)value;
- (BOOL)scanHexInt:(unsigned *)value; /* Optionally prefixed with "0x" or "0X" */
- (BOOL)scanLongLong:(long long *)value;
- (BOOL)scanFloat:(float *)value;
- (BOOL)scanDouble:(double *)value;
- (BOOL)scanString:(NSString *)string intoString:(NSString **)value;
- (BOOL)scanCharactersFromSet:(NSCharacterSet *)set intoString:(NSString **)value;
- (BOOL)scanUpToString:(NSString *)string intoString:(NSString **)value;
- (BOOL)scanUpToCharactersFromSet:(NSCharacterSet *)set intoString:(NSString **)value;
- (BOOL)isAtEnd;
- (id)initWithString:(NSString *)string;
+ (id)scannerWithString:(NSString *)string;
+ (id)localizedScannerWithString:(NSString *)string;
@end