utf16 354 ext/json/JSON_parser.c static void utf16_to_utf8(smart_str *buf, unsigned short utf16) utf16 356 ext/json/JSON_parser.c if (utf16 < 0x80) utf16 358 ext/json/JSON_parser.c smart_str_appendc(buf, (unsigned char) utf16); utf16 360 ext/json/JSON_parser.c else if (utf16 < 0x800) utf16 362 ext/json/JSON_parser.c smart_str_appendc(buf, 0xc0 | (utf16 >> 6)); utf16 363 ext/json/JSON_parser.c smart_str_appendc(buf, 0x80 | (utf16 & 0x3f)); utf16 365 ext/json/JSON_parser.c else if ((utf16 & 0xfc00) == 0xdc00 utf16 376 ext/json/JSON_parser.c | (utf16 & 0x3ff)) + 0x10000; utf16 386 ext/json/JSON_parser.c smart_str_appendc(buf, 0xe0 | (utf16 >> 12)); utf16 387 ext/json/JSON_parser.c smart_str_appendc(buf, 0x80 | ((utf16 >> 6) & 0x3f)); utf16 388 ext/json/JSON_parser.c smart_str_appendc(buf, 0x80 | (utf16 & 0x3f)); utf16 450 ext/json/JSON_parser.c unsigned short utf16 = 0; utf16 502 ext/json/JSON_parser.c utf16 = dehexchar(next_char) << 12; utf16 504 ext/json/JSON_parser.c utf16 += dehexchar(next_char) << 8; utf16 506 ext/json/JSON_parser.c utf16 += dehexchar(next_char) << 4; utf16 508 ext/json/JSON_parser.c utf16 += dehexchar(next_char); utf16 509 ext/json/JSON_parser.c utf16_to_utf8(&buf, utf16); utf16 372 ext/json/json.c static int json_utf8_to_utf16(unsigned short *utf16, char utf8[], int len) /* {{{ */ utf16 377 ext/json/json.c if (utf16) { utf16 387 ext/json/json.c utf16[j++] = (unsigned short)((us >> 10) | 0xd800); utf16 388 ext/json/json.c utf16[j] = (unsigned short)((us & 0x3ff) | 0xdc00); utf16 390 ext/json/json.c utf16[j] = (unsigned short)us; utf16 414 ext/json/json.c unsigned short *utf16; utf16 449 ext/json/json.c utf16 = (options & PHP_JSON_UNESCAPED_UNICODE) ? NULL : (unsigned short *) safe_emalloc(len, sizeof(unsigned short), 0); utf16 450 ext/json/json.c ulen = json_utf8_to_utf16(utf16, s, len); utf16 452 ext/json/json.c if (utf16) { utf16 453 ext/json/json.c efree(utf16); utf16 473 ext/json/json.c us = (options & PHP_JSON_UNESCAPED_UNICODE) ? s[pos++] : utf16[pos++]; utf16 564 ext/json/json.c if (utf16) { utf16 565 ext/json/json.c efree(utf16); utf16 687 ext/json/json.c unsigned short *utf16; utf16 690 ext/json/json.c utf16 = (unsigned short *) safe_emalloc((str_len+1), sizeof(unsigned short), 1); utf16 692 ext/json/json.c utf16_len = json_utf8_to_utf16(utf16, str, str_len); utf16 694 ext/json/json.c if (utf16) { utf16 695 ext/json/json.c efree(utf16); utf16 703 ext/json/json.c efree(utf16); utf16 709 ext/json/json.c if (parse_JSON_ex(jp, z, utf16, utf16_len, options TSRMLS_CC)) { utf16 785 ext/json/json.c efree(utf16); utf16 413 ext/mysqlnd/mysqlnd_charset.c static uint mysqlnd_mbcharlen_utf16(unsigned int utf16) utf16 415 ext/mysqlnd/mysqlnd_charset.c return UTF16_HIGH_HEAD(utf16) ? 4 : 2;