Line data Source code
1 0 : /* 2 : 3 : NSScannerOOExtensions.h 4 : 5 : Additions to NSScanner to work around bugs. 6 : 7 : FIXME: does this work around bugs that actually exist in any system we're 8 : targetting? It's a conundrum. 9 : 10 : 11 : Oolite 12 : Copyright (C) 2004-2013 Giles C Williams and contributors 13 : 14 : This program is free software; you can redistribute it and/or 15 : modify it under the terms of the GNU General Public License 16 : as published by the Free Software Foundation; either version 2 17 : of the License, or (at your option) any later version. 18 : 19 : This program is distributed in the hope that it will be useful, 20 : but WITHOUT ANY WARRANTY; without even the implied warranty of 21 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 : GNU General Public License for more details. 23 : 24 : You should have received a copy of the GNU General Public License 25 : along with this program; if not, write to the Free Software 26 : Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 27 : MA 02110-1301, USA. 28 : 29 : */ 30 : 31 : #import "OOCocoa.h" 32 : 33 : 34 : @interface NSScanner (OOExtensions) 35 : 36 0 : - (BOOL) ooliteScanCharactersFromSet:(NSCharacterSet *)set intoString:(NSString **)value; 37 0 : - (BOOL) ooliteScanUpToCharactersFromSet:(NSCharacterSet *)set intoString:(NSString **)value; 38 : 39 : @end 40 :