Searched refs:utf16buf (Results 1 – 4 of 4) sorted by relevance
1830 var utf16buf = new Array(len*2);1835 if (c < 0x80) { utf16buf[out++] = c; continue; } field1839 if (c_len > 4) { utf16buf[out++] = 0xfffd; i += c_len-1; continue; } field1850 if (c_len > 1) { utf16buf[out++] = 0xfffd; continue; } field1853 utf16buf[out++] = c; field1856 utf16buf[out++] = 0xd800 | ((c >> 10) & 0x3ff);1857 utf16buf[out++] = 0xdc00 | (c & 0x3ff);1862 if (utf16buf.length !== out) {1863 if(utf16buf.subarray) {1864 utf16buf = utf16buf.subarray(0, out);[all …]
2876 var utf16buf = new Array(len*2);2881 if (c < 0x80) { utf16buf[out++] = c; continue; } field2885 if (c_len > 4) { utf16buf[out++] = 0xfffd; i += c_len-1; continue; } field2896 if (c_len > 1) { utf16buf[out++] = 0xfffd; continue; } field2899 utf16buf[out++] = c; field2902 utf16buf[out++] = 0xd800 | ((c >> 10) & 0x3ff);2903 utf16buf[out++] = 0xdc00 | (c & 0x3ff);2908 if (utf16buf.length !== out) {2909 if(utf16buf.subarray) {2910 utf16buf = utf16buf.subarray(0, out);[all …]
53793 var utf16buf = new Array(len * 2);53799 utf16buf[out++] = c;53806 utf16buf[out++] = 0xfffd;53821 utf16buf[out++] = 0xfffd;53826 utf16buf[out++] = c;53829 utf16buf[out++] = 0xd800 | c >> 10 & 0x3ff;53830 utf16buf[out++] = 0xdc00 | c & 0x3ff;53835 if (utf16buf.length !== out) {53836 if (utf16buf.subarray) {53837 utf16buf = utf16buf.subarray(0, out);[all …]