|
| 1 | +// |
| 2 | +// BSJSONAdditions |
| 3 | +// |
| 4 | +// Created by Blake Seely on 2/1/06. |
| 5 | +// Copyright 2006 Blake Seely - http://www.blakeseely.com All rights reserved. |
| 6 | +// Permission to use this code: |
| 7 | +// |
| 8 | +// Feel free to use this code in your software, either as-is or |
| 9 | +// in a modified form. Either way, please include a credit in |
| 10 | +// your software's "About" box or similar, mentioning at least |
| 11 | +// my name (Blake Seely). |
| 12 | +// |
| 13 | +// Permission to redistribute this code: |
| 14 | +// |
| 15 | +// You can redistribute this code, as long as you keep these |
| 16 | +// comments. You can also redistribute modified versions of the |
| 17 | +// code, as long as you add comments to say that you've made |
| 18 | +// modifications (keeping these original comments too). |
| 19 | +// |
| 20 | +// If you do use or redistribute this code, an email would be |
| 21 | +// appreciated, just to let me know that people are finding my |
| 22 | +// code useful. You can reach me at blakeseely@mac.com |
| 23 | +// |
| 24 | + |
| 25 | +#import <Foundation/Foundation.h> |
| 26 | + |
| 27 | +extern NSString *jsonObjectStartString; |
| 28 | +extern NSString *jsonObjectEndString; |
| 29 | +extern NSString *jsonArrayStartString; |
| 30 | +extern NSString *jsonArrayEndString; |
| 31 | +extern NSString *jsonKeyValueSeparatorString; |
| 32 | +extern NSString *jsonValueSeparatorString; |
| 33 | +extern NSString *jsonStringDelimiterString; |
| 34 | +extern NSString *jsonStringEscapedDoubleQuoteString; |
| 35 | +extern NSString *jsonStringEscapedSlashString; |
| 36 | +extern NSString *jsonTrueString; |
| 37 | +extern NSString *jsonFalseString; |
| 38 | +extern NSString *jsonNullString; |
| 39 | +extern NSString *jsonIndentString; |
| 40 | +extern const NSInteger jsonDoNotIndent; |
| 41 | + |
| 42 | + |
| 43 | +@interface NSScanner (PrivateBSJSONAdditions) |
| 44 | + |
| 45 | +- (BOOL)scanJSONObject:(NSDictionary **)dictionary; |
| 46 | +- (BOOL)scanJSONArray:(NSArray **)array; |
| 47 | +- (BOOL)scanJSONString:(NSString **)string; |
| 48 | +- (BOOL)scanJSONValue:(id *)value; |
| 49 | +- (BOOL)scanJSONNumber:(NSNumber **)number; |
| 50 | + |
| 51 | +- (BOOL)scanJSONWhiteSpace; |
| 52 | +- (BOOL)scanJSONKeyValueSeparator; |
| 53 | +- (BOOL)scanJSONValueSeparator; |
| 54 | +- (BOOL)scanJSONObjectStartString; |
| 55 | +- (BOOL)scanJSONObjectEndString; |
| 56 | +- (BOOL)scanJSONArrayStartString; |
| 57 | +- (BOOL)scanJSONArrayEndString; |
| 58 | +- (BOOL)scanJSONArrayEndString; |
| 59 | +- (BOOL)scanJSONStringDelimiterString; |
| 60 | + |
| 61 | +- (BOOL)scanUnicodeCharacterIntoString:(NSMutableString *)string; |
| 62 | + |
| 63 | +@end |
0 commit comments