• Home
  • Raw
  • Download

Lines Matching refs:codepoint

165         int codepoint = 0;  in get_codepoint()  local
174codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x30u) << factor); in get_codepoint()
178codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x37u) << factor); in get_codepoint()
182codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x57u) << factor); in get_codepoint()
190 JSON_ASSERT(0x0000 <= codepoint && codepoint <= 0xFFFF); in get_codepoint()
191 return codepoint; in get_codepoint()
314 int codepoint = codepoint1; // start with codepoint1 in scan_string() local
340 codepoint = static_cast<int>( in scan_string()
372 JSON_ASSERT(0x00 <= codepoint && codepoint <= 0x10FFFF); in scan_string()
375 if (codepoint < 0x80) in scan_string()
378 add(static_cast<char_int_type>(codepoint)); in scan_string()
380 else if (codepoint <= 0x7FF) in scan_string()
383 … add(static_cast<char_int_type>(0xC0u | (static_cast<unsigned int>(codepoint) >> 6u))); in scan_string()
384 … add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu))); in scan_string()
386 else if (codepoint <= 0xFFFF) in scan_string()
389 … add(static_cast<char_int_type>(0xE0u | (static_cast<unsigned int>(codepoint) >> 12u))); in scan_string()
390 … add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 6u) & 0x3Fu))); in scan_string()
391 … add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu))); in scan_string()
396 … add(static_cast<char_int_type>(0xF0u | (static_cast<unsigned int>(codepoint) >> 18u))); in scan_string()
397 … add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 12u) & 0x3Fu))); in scan_string()
398 … add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 6u) & 0x3Fu))); in scan_string()
399 … add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu))); in scan_string()