Lines Matching refs:us
316 unsigned int us; in php_json_escape_string() local
354 us = (unsigned char)s[pos]; in php_json_escape_string()
355 if (EXPECTED(!ZEND_BIT_TEST(charmap, us))) { in php_json_escape_string()
368 us = (unsigned char)s[0]; in php_json_escape_string()
369 if (UNEXPECTED(us >= 0x80)) { in php_json_escape_string()
371 us = php_next_utf8_char((unsigned char *)s, len, &pos, &status); in php_json_escape_string()
398 || us < 0x2028 || us > 0x2029)) { in php_json_escape_string()
402 if (us >= 0x10000) { in php_json_escape_string()
405 us -= 0x10000; in php_json_escape_string()
406 next_us = (unsigned short)((us & 0x3ff) | 0xdc00); in php_json_escape_string()
407 us = (unsigned short)((us >> 10) | 0xd800); in php_json_escape_string()
411 dst[2] = digits[(us >> 12) & 0xf]; in php_json_escape_string()
412 dst[3] = digits[(us >> 8) & 0xf]; in php_json_escape_string()
413 dst[4] = digits[(us >> 4) & 0xf]; in php_json_escape_string()
414 dst[5] = digits[us & 0xf]; in php_json_escape_string()
415 us = next_us; in php_json_escape_string()
420 dst[2] = digits[(us >> 12) & 0xf]; in php_json_escape_string()
421 dst[3] = digits[(us >> 8) & 0xf]; in php_json_escape_string()
422 dst[4] = digits[(us >> 4) & 0xf]; in php_json_escape_string()
423 dst[5] = digits[us & 0xf]; in php_json_escape_string()
430 switch (us) { in php_json_escape_string()
504 ZEND_ASSERT(us < ' '); in php_json_escape_string()
510 dst[4] = digits[(us >> 4) & 0xf]; in php_json_escape_string()
511 dst[5] = digits[us & 0xf]; in php_json_escape_string()