Lines Matching refs:out
705 result = out.utf8decode(result);
713 result = utils.transformTo("string", out.utf8encode(result));
1235 var out = {
1510 module.exports = out;
1824 var str, i, out, c, c_len;
1832 for (out=0, i=0; i<len;) {
1835 if (c < 0x80) { utf16buf[out++] = c; continue; }
1839 if (c_len > 4) { utf16buf[out++] = 0xfffd; i += c_len-1; continue; }
1850 if (c_len > 1) { utf16buf[out++] = 0xfffd; continue; }
1853 utf16buf[out++] = c;
1856 utf16buf[out++] = 0xd800 | ((c >> 10) & 0x3ff);
1857 utf16buf[out++] = 0xdc00 | (c & 0x3ff);
1862 if (utf16buf.length !== out) {
1864 utf16buf = utf16buf.subarray(0, out);
1866 utf16buf.length = out;
3753 var i, out, c, c_len;
3761 for (out=0, i=0; i<len;) {
3764 if (c < 0x80) { utf16buf[out++] = c; continue; }
3768 if (c_len > 4) { utf16buf[out++] = 0xfffd; i += c_len-1; continue; }
3779 if (c_len > 1) { utf16buf[out++] = 0xfffd; continue; }
3782 utf16buf[out++] = c;
3785 utf16buf[out++] = 0xd800 | ((c >> 10) & 0x3ff);
3786 utf16buf[out++] = 0xdc00 | (c & 0x3ff);
3790 return buf2binstring(utf16buf, out);