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/json/
H A DJSON_parser.c354 static void utf16_to_utf8(smart_str *buf, unsigned short utf16) argument
356 if (utf16 < 0x80)
358 smart_str_appendc(buf, (unsigned char) utf16);
360 else if (utf16 < 0x800)
362 smart_str_appendc(buf, 0xc0 | (utf16 >> 6));
363 smart_str_appendc(buf, 0x80 | (utf16 & 0x3f));
365 else if ((utf16 & 0xfc00) == 0xdc00
376 | (utf16 & 0x3ff)) + 0x10000;
386 smart_str_appendc(buf, 0xe0 | (utf16 >> 12));
387 smart_str_appendc(buf, 0x80 | ((utf16 >>
450 unsigned short utf16 = 0; local
[all...]
H A Djson.c363 static int json_utf8_to_utf16(unsigned short *utf16, char utf8[], int len) /* {{{ */ argument
368 if (utf16) {
378 utf16[j++] = (unsigned short)((us >> 10) | 0xd800);
379 utf16[j] = (unsigned short)((us & 0x3ff) | 0xdc00);
381 utf16[j] = (unsigned short)us;
385 /* Only check if utf8 string is valid, and compute utf16 lenght */
405 unsigned short *utf16; local
437 utf16 = (options & PHP_JSON_UNESCAPED_UNICODE) ? NULL : (unsigned short *) safe_emalloc(len, sizeof(unsigned short), 0);
438 ulen = json_utf8_to_utf16(utf16, s, len);
440 if (utf16) {
670 unsigned short *utf16; local
[all...]
/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 6 milliseconds