• Home
  • Raw
  • Download

Lines Matching refs:ucs_char

523 	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()
568 got_hi_surrogate = tok->ucs_char; in json_tokener_parse_ex()
589 tok->ucs_char = 0; in json_tokener_parse_ex()
599 } else if (IS_LOW_SURROGATE(tok->ucs_char)) { in json_tokener_parse_ex()
602 } else if (tok->ucs_char < 0x10000) { in json_tokener_parse_ex()
603 unescaped_utf[0] = 0xe0 | (tok->ucs_char >> 12); in json_tokener_parse_ex()
604 unescaped_utf[1] = 0x80 | ((tok->ucs_char >> 6) & 0x3f); in json_tokener_parse_ex()
605 unescaped_utf[2] = 0x80 | (tok->ucs_char & 0x3f); in json_tokener_parse_ex()
607 } else if (tok->ucs_char < 0x110000) { in json_tokener_parse_ex()
608 unescaped_utf[0] = 0xf0 | ((tok->ucs_char >> 18) & 0x07); in json_tokener_parse_ex()
609 unescaped_utf[1] = 0x80 | ((tok->ucs_char >> 12) & 0x3f); in json_tokener_parse_ex()
610 unescaped_utf[2] = 0x80 | ((tok->ucs_char >> 6) & 0x3f); in json_tokener_parse_ex()
611 unescaped_utf[3] = 0x80 | (tok->ucs_char & 0x3f); in json_tokener_parse_ex()