Back to index

php5  5.3.10
utf8_decode.h
Go to the documentation of this file.
00001 /* utf8_decode.h */
00002 
00003 #define UTF8_END   -1
00004 #define UTF8_ERROR -2
00005 
00006 typedef struct json_utf8_decode
00007 {
00008     int the_index;
00009     char *the_input;
00010     int the_length;
00011     int the_char;
00012     int the_byte;
00013 } json_utf8_decode;
00014 
00015 extern int  utf8_decode_at_byte(json_utf8_decode *utf8);
00016 extern int  utf8_decode_at_character(json_utf8_decode *utf8);
00017 extern void utf8_decode_init(json_utf8_decode *utf8, char p[], int length);
00018 extern int  utf8_decode_next(json_utf8_decode *utf8);