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

/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_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 */
H A Djson_scanner.c1189 int utf16 = php_json_ucs2_to_int(s, 4); local
1191 *(s->pstr++) = (char) (0xe0 | (utf16 >> 12));
1192 *(s->pstr++) = (char) (0x80 | ((utf16 >> 6) & 0x3f));
1193 *(s->pstr++) = (char) (0x80 | (utf16 & 0x3f));
1292 int utf16 = php_json_ucs2_to_int(s, 3); local
1294 *(s->pstr++) = (char) (0xc0 | (utf16 >> 6));
1295 *(s->pstr++) = (char) (0x80 | (utf16 & 0x3f));
1312 int utf16 = php_json_ucs2_to_int(s, 2); local
1314 *(s->pstr++) = (char) utf16;
/PHP_TRUNK/ext/intl/
H A Dintl_convertcpp.cpp40 UChar *utf16 = ret.getBuffer(capacity); local
43 u_strFromUTF8WithSub(utf16, ret.getCapacity(), &utf16_len,

Completed in 6 milliseconds