Home
last modified time | relevance | path

Searched refs:utf16 (Results 1 – 10 of 10) sorted by relevance

/PHP-7.1/ext/intl/
H A Dintl_convertcpp.cpp40 UChar *utf16 = ret.getBuffer(capacity); in intl_stringFromChar() local
43 u_strFromUTF8WithSub(utf16, ret.getCapacity(), &utf16_len, in intl_stringFromChar()
/PHP-7.1/ext/json/
H A Djson_scanner.re277 int utf16 = php_json_ucs2_to_int(s, 2);
279 *(s->pstr++) = (char) utf16;
284 int utf16 = php_json_ucs2_to_int(s, 3);
286 *(s->pstr++) = (char) (0xc0 | (utf16 >> 6));
287 *(s->pstr++) = (char) (0x80 | (utf16 & 0x3f));
292 int utf16 = php_json_ucs2_to_int(s, 4);
294 *(s->pstr++) = (char) (0xe0 | (utf16 >> 12));
295 *(s->pstr++) = (char) (0x80 | ((utf16 >> 6) & 0x3f));
296 *(s->pstr++) = (char) (0x80 | (utf16 & 0x3f));
H A Djson_encoder.c253 static int php_json_utf8_to_utf16(unsigned short *utf16, char utf8[], size_t len) /* {{{ */ in php_json_utf8_to_utf16() argument
258 if (utf16) { in php_json_utf8_to_utf16()
268 utf16[j++] = (unsigned short)((us >> 10) | 0xd800); in php_json_utf8_to_utf16()
269 utf16[j] = (unsigned short)((us & 0x3ff) | 0xdc00); in php_json_utf8_to_utf16()
271 utf16[j] = (unsigned short)us; in php_json_utf8_to_utf16()
H A Djson_scanner.c1174 int utf16 = php_json_ucs2_to_int(s, 2); in php_json_scan() local
1176 *(s->pstr++) = (char) utf16; in php_json_scan()
1183 int utf16 = php_json_ucs2_to_int(s, 3); in php_json_scan() local
1185 *(s->pstr++) = (char) (0xc0 | (utf16 >> 6)); in php_json_scan()
1186 *(s->pstr++) = (char) (0x80 | (utf16 & 0x3f)); in php_json_scan()
1193 int utf16 = php_json_ucs2_to_int(s, 4); in php_json_scan() local
1195 *(s->pstr++) = (char) (0xe0 | (utf16 >> 12)); in php_json_scan()
1196 *(s->pstr++) = (char) (0x80 | ((utf16 >> 6) & 0x3f)); in php_json_scan()
1197 *(s->pstr++) = (char) (0x80 | (utf16 & 0x3f)); in php_json_scan()
/PHP-7.1/ext/intl/tests/
H A Dbug75317.phpt10 $utf16 = UConverter::getAliases('utf-16')[0];
25 printResult($c->getDestinationEncoding(), $utf16);
/PHP-7.1/ext/mysqli/tests/
H A Dmysqli_character_set.phpt47 /* The server currently 16.08.2010 can't handle data sent in utf16 and utf32 */
49 …if ($charset['Charset'] == 'ucs2' || $charset['Charset'] == 'utf16' || $charset['Charset'] == 'utf…
H A Dmysqli_options.phpt90 /* The server currently 16.08.2010 can't handle data sent in utf16 and utf32 */
91 …if ($charset['Charset'] == 'ucs2' || $charset['Charset'] == 'utf16' || $charset['Charset'] == 'utf…
H A Dmysqli_set_charset.phpt105 …if ('ucs2' == $tmp['Charset'] || 'utf16' == $tmp['Charset'] || 'utf32' == $tmp['Charset'] || 'utf1…
/PHP-7.1/ext/mysqlnd/
H A Dmysqlnd_charset.c413 static uint mysqlnd_mbcharlen_utf16(unsigned int utf16) in mysqlnd_mbcharlen_utf16() argument
415 return UTF16_HIGH_HEAD(utf16) ? 4 : 2; in mysqlnd_mbcharlen_utf16()
/PHP-7.1/ext/mbstring/oniguruma/
H A DHISTORY1054 2004/05/24: [impl] divide enc/utf16.c to utf16_be.c and utf16_le.c.

Completed in 23 milliseconds