1
/* Definitions for NSScanner class
2
Copyright (C) 1996,1999 Free Software Foundation, Inc.
4
Author: Eric Norum <eric@skatter.usask.ca>
7
This file is part of the GNUstep Objective-C Library.
9
This library is free software; you can redistribute it and/or
10
modify it under the terms of the GNU Library General Public
11
License as published by the Free Software Foundation; either
12
version 2 of the License, or (at your option) any later version.
14
This library is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
Library General Public License for more details.
19
You should have received a copy of the GNU Library General Public
20
License along with this library; if not, write to the Free
21
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
24
#ifndef __NSScanner_h_GNUSTEP_INCLUDE
25
#define __NSScanner_h_GNUSTEP_INCLUDE
27
#include <Foundation/NSDecimal.h>
28
#include <Foundation/NSDictionary.h>
29
#include <Foundation/NSCharacterSet.h>
34
@interface NSScanner : NSObject <NSCopying>
38
NSCharacterSet *_charactersToBeSkipped;
39
BOOL (*_skipImp)(NSCharacterSet*, SEL, unichar);
40
NSDictionary *_locale;
41
unsigned int _scanLocation;
48
* Creating an NSScanner
50
+ (id) localizedScannerWithString: (NSString*)aString;
51
+ (id) scannerWithString: (NSString*)aString;
52
- (id) initWithString: (NSString*)aString;
55
* Getting an NSScanner's string
60
* Configuring an NSScanner
62
- (unsigned) scanLocation;
63
- (void) setScanLocation: (unsigned int)anIndex;
65
- (BOOL) caseSensitive;
66
- (void) setCaseSensitive: (BOOL)flag;
68
- (NSCharacterSet*) charactersToBeSkipped;
69
- (void) setCharactersToBeSkipped: (NSCharacterSet *)aSet;
71
- (NSDictionary*)locale;
72
- (void)setLocale:(NSDictionary*)localeDictionary;
77
- (BOOL) scanInt: (int*)value;
78
- (BOOL) scanHexInt: (unsigned int*)value;
79
- (BOOL) scanLongLong: (long long*)value;
80
- (BOOL) scanFloat: (float*)value;
81
- (BOOL) scanDouble: (double*)value;
82
- (BOOL) scanString: (NSString*)string intoString: (NSString**)value;
83
- (BOOL) scanCharactersFromSet: (NSCharacterSet*)aSet
84
intoString: (NSString**)value;
85
- (BOOL) scanUpToString: (NSString*)string intoString: (NSString**)value;
86
- (BOOL) scanUpToCharactersFromSet: (NSCharacterSet*)aSet
87
intoString: (NSString**)value;
91
- (BOOL) scanRadixUnsignedInt: (unsigned int*)value;
93
#ifndef STRICT_OPENSTEP
94
- (BOOL) scanDecimal: (NSDecimal*)value;
98
#endif /* __NSScanner_h_GNUSTEP_INCLUDE */