Lines Matching refs:utf8

59 get(json_utf8_decode *utf8)  in get()  argument
62 if (utf8->the_index >= utf8->the_length) { in get()
65 c = utf8->the_input[utf8->the_index] & 0xFF; in get()
66 utf8->the_index += 1; in get()
76 cont(json_utf8_decode *utf8) in cont() argument
78 int c = get(utf8); in cont()
87 utf8_decode_init(json_utf8_decode *utf8, char p[], int length) in utf8_decode_init() argument
89 utf8->the_index = 0; in utf8_decode_init()
90 utf8->the_input = p; in utf8_decode_init()
91 utf8->the_length = length; in utf8_decode_init()
92 utf8->the_char = 0; in utf8_decode_init()
93 utf8->the_byte = 0; in utf8_decode_init()
101 utf8_decode_at_byte(json_utf8_decode *utf8) in utf8_decode_at_byte() argument
103 return utf8->the_byte; in utf8_decode_at_byte()
112 utf8_decode_at_character(json_utf8_decode *utf8) in utf8_decode_at_character() argument
114 return utf8->the_char > 0 ? utf8->the_char - 1 : 0; in utf8_decode_at_character()
125 utf8_decode_next(json_utf8_decode *utf8) in utf8_decode_next() argument
130 if (utf8->the_index >= utf8->the_length) { in utf8_decode_next()
131 return utf8->the_index == utf8->the_length ? UTF8_END : UTF8_ERROR; in utf8_decode_next()
133 utf8->the_byte = utf8->the_index; in utf8_decode_next()
134 utf8->the_char += 1; in utf8_decode_next()
135 c = get(utf8); in utf8_decode_next()
146 int c1 = cont(utf8); in utf8_decode_next()
157 int c1 = cont(utf8); in utf8_decode_next()
158 int c2 = cont(utf8); in utf8_decode_next()
169 int c1 = cont(utf8); in utf8_decode_next()
170 int c2 = cont(utf8); in utf8_decode_next()
171 int c3 = cont(utf8); in utf8_decode_next()