| 1 | /* |
| 2 | ** NSScanner+Extensions.h |
| 3 | ** |
| 4 | ** Copyright (c) 2005 Ludovic Marcotte |
| 5 | ** |
| 6 | ** Author: Ludovic Marcotte <[email protected]> |
| 7 | ** |
| 8 | ** This library is free software; you can redistribute it and/or |
| 9 | ** modify it under the terms of the GNU Lesser General Public |
| 10 | ** License as published by the Free Software Foundation; either |
| 11 | ** version 2.1 of the License, or (at your option) any later version. |
| 12 | ** |
| 13 | ** This library is distributed in the hope that it will be useful, |
| 14 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | ** Lesser General Public License for more details. |
| 17 | ** |
| 18 | ** You should have received a copy of the GNU General Public License |
| 19 | ** along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 | */ |
| 21 | |
| 22 | #ifndef _Pantomime_H_NSScanner_Extensions |
| 23 | #define _Pantomime_H_NSScanner_Extensions |
| 24 | |
| 25 | #import <Foundation/NSScanner.h> |
| 26 | |
| 27 | /*! |
| 28 | @category NSScanner (PantomimeScannerExtensions) |
| 29 | @abstract Pantomime extensions to NSScanner. |
| 30 | @discussion This category provides useful extensions to the |
| 31 | default NSScanner class. |
| 32 | */ |
| 33 | @interface NSScanner (PantomimeScannerExtensions) |
| 34 | |
| 35 | /*! |
| 36 | @method scanUnsignedInt: |
| 37 | @discussion This method is used to scan an unsigned int. |
| 38 | @param theValue The value in which the unsigned int |
| 39 | will be stored. |
| 40 | @result YES if we find a decimal unsigned int, no otherwise. |
| 41 | */ |
| 42 | - (BOOL) scanUnsignedInt: (unsigned int *) theValue; |
| 43 | |
| 44 | @end |
| 45 | |
| 46 | #endif // _Pantomime_H_NSFileManager_Extensions |