This commit is contained in:
wu736139669
2015-03-30 14:41:20 +08:00
parent 8cda2a3694
commit a1cea576f2
354 changed files with 60878 additions and 4 deletions
+40
View File
@@ -0,0 +1,40 @@
//
// Created by SuperPappi on 09/01/2013.
//
// To change the template use AppCode | Preferences | File Templates.
//
#import <Foundation/Foundation.h>
typedef enum {
sbjson4_token_error = -1,
sbjson4_token_eof,
sbjson4_token_array_open,
sbjson4_token_array_close,
sbjson4_token_value_sep,
sbjson4_token_object_open,
sbjson4_token_object_close,
sbjson4_token_entry_sep,
sbjson4_token_bool,
sbjson4_token_null,
sbjson4_token_integer,
sbjson4_token_real,
sbjson4_token_string,
sbjson4_token_encoded,
} sbjson4_token_t;
@interface SBJson4StreamTokeniser : NSObject
@property (nonatomic, readonly, copy) NSString *error;
- (void)appendData:(NSData*)data_;
- (sbjson4_token_t)getToken:(char**)tok length:(NSUInteger*)len;
@end