Home
last modified time | relevance | path

Searched refs:ucs_char (Results 1 – 4 of 4) sorted by relevance

/device/google/bonito/json-c/
Djson_tokener.c523 tok->ucs_char = 0; in json_tokener_parse_ex()
540 tok->ucs_char += ((unsigned int)jt_hexdigit(c) << ((3-tok->st_pos++)*4)); in json_tokener_parse_ex()
545 if (IS_LOW_SURROGATE(tok->ucs_char)) { in json_tokener_parse_ex()
547 tok->ucs_char = DECODE_SURROGATE_PAIR(got_hi_surrogate, tok->ucs_char); in json_tokener_parse_ex()
556 if (tok->ucs_char < 0x80) { in json_tokener_parse_ex()
557 unescaped_utf[0] = tok->ucs_char; in json_tokener_parse_ex()
559 } else if (tok->ucs_char < 0x800) { in json_tokener_parse_ex()
560 unescaped_utf[0] = 0xc0 | (tok->ucs_char >> 6); in json_tokener_parse_ex()
561 unescaped_utf[1] = 0x80 | (tok->ucs_char & 0x3f); in json_tokener_parse_ex()
563 } else if (IS_HIGH_SURROGATE(tok->ucs_char)) { in json_tokener_parse_ex()
[all …]
Djson_tokener.h84 unsigned int ucs_char; member
/device/google/crosshatch/json-c/
Djson_tokener.c523 tok->ucs_char = 0; in json_tokener_parse_ex()
540 tok->ucs_char += ((unsigned int)jt_hexdigit(c) << ((3-tok->st_pos++)*4)); in json_tokener_parse_ex()
545 if (IS_LOW_SURROGATE(tok->ucs_char)) { in json_tokener_parse_ex()
547 tok->ucs_char = DECODE_SURROGATE_PAIR(got_hi_surrogate, tok->ucs_char); in json_tokener_parse_ex()
556 if (tok->ucs_char < 0x80) { in json_tokener_parse_ex()
557 unescaped_utf[0] = tok->ucs_char; in json_tokener_parse_ex()
559 } else if (tok->ucs_char < 0x800) { in json_tokener_parse_ex()
560 unescaped_utf[0] = 0xc0 | (tok->ucs_char >> 6); in json_tokener_parse_ex()
561 unescaped_utf[1] = 0x80 | (tok->ucs_char & 0x3f); in json_tokener_parse_ex()
563 } else if (IS_HIGH_SURROGATE(tok->ucs_char)) { in json_tokener_parse_ex()
[all …]
Djson_tokener.h84 unsigned int ucs_char; member