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

/PHP_TRUNK/ext/intl/
H A Dintl_convertcpp.cpp40 UChar *utf16 = ret.getBuffer(capacity); local
43 u_strFromUTF8WithSub(utf16, ret.getCapacity(), &utf16_len,
/PHP_TRUNK/ext/json/
H A Djson_scanner.c1011 int utf16 = php_json_ucs2_to_int(s, 4); local
1013 *(s->pstr++) = (char) (0xe0 | (utf16 >> 12));
1014 *(s->pstr++) = (char) (0x80 | ((utf16 >> 6) & 0x3f));
1015 *(s->pstr++) = (char) (0x80 | (utf16 & 0x3f));
1125 int utf16 = php_json_ucs2_to_int(s, 3); local
1127 *(s->pstr++) = (char) (0xc0 | (utf16 >> 6));
1128 *(s->pstr++) = (char) (0x80 | (utf16 & 0x3f));
1145 int utf16 = php_json_ucs2_to_int(s, 2); local
1147 *(s->pstr++) = (char) utf16;
H A Djson_encoder.c241 static int php_json_utf8_to_utf16(unsigned short *utf16, char utf8[], size_t len) /* {{{ */ argument
246 if (utf16) {
256 utf16[j++] = (unsigned short)((us >> 10) | 0xd800);
257 utf16[j] = (unsigned short)((us & 0x3ff) | 0xdc00);
259 utf16[j] = (unsigned short)us;
263 /* Only check if utf8 string is valid, and compute utf16 length */
/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},

Completed in 8 milliseconds