Searched defs:utf16 (Results 1 - 4 of 4) sorted by relevance

/PHP_TRUNK/ext/intl/
H A Dintl_convertcpp.cpp35 UChar *utf16 = ret.getBuffer(capacity); local
38 u_strFromUTF8WithSub(utf16, ret.getCapacity(), &utf16_len,
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_charset.c392 /* {{{ utf16 functions */
413 static uint mysqlnd_mbcharlen_utf16(unsigned int utf16) argument
415 return UTF16_HIGH_HEAD(utf16) ? 4 : 2;
545 { 54, "utf16", "utf16_general_ci", 2, 4, "UTF-16 Unicode", mysqlnd_mbcharlen_utf16, check_mb_utf16},
546 { 55, "utf16", "utf16_bin", 2, 4, "UTF-16 Unicode", mysqlnd_mbcharlen_utf16, check_mb_utf16},
/PHP_TRUNK/ext/json/
H A DJSON_parser.c358 static void utf16_to_utf8(smart_str *buf, unsigned short utf16) argument
360 if (utf16 < 0x80)
362 smart_str_appendc(buf, (unsigned char) utf16);
364 else if (utf16 < 0x800)
366 smart_str_appendc(buf, 0xc0 | (utf16 >> 6));
367 smart_str_appendc(buf, 0x80 | (utf16 & 0x3f));
369 else if ((utf16 & 0xfc00) == 0xdc00
380 | (utf16 & 0x3ff)) + 0x10000;
390 smart_str_appendc(buf, 0xe0 | (utf16 >> 12));
391 smart_str_appendc(buf, 0x80 | ((utf16 >>
458 unsigned short utf16 = 0; local
[all...]
H A Djson.c346 static int json_utf8_to_utf16(unsigned short *utf16, char utf8[], int len) /* {{{ */ argument
351 if (utf16) {
361 utf16[j++] = (unsigned short)((us >> 10) | 0xd800);
362 utf16[j] = (unsigned short)((us & 0x3ff) | 0xdc00);
364 utf16[j] = (unsigned short)us;
368 /* Only check if utf8 string is valid, and compute utf16 length */
670 unsigned short *utf16; local
673 utf16 = (unsigned short *) safe_emalloc((str_len+1), sizeof(unsigned short), 1);
675 utf16_len = json_utf8_to_utf16(utf16, str, str_len);
677 if (utf16) {
[all...]

Completed in 31 milliseconds