Lines Matching refs:str

5422 function stringToBuffer(str) {
5423 if (typeof str !== 'string') {
5424 return str;
5428 return Buffer.from(textEncoder.encode(str).buffer);
5431 return Buffer.from(str);
19414 _this._parse = options.parse || function (str) {
19415 return new Date(str);
28600 Node.prototype._isNumstr = function isNumstr(str) {
28601 return /^[0-9 ]*$/.test(str);
28604 Node.prototype._isPrintstr = function isPrintstr(str) {
29623 function parseHex(str, start, end) {
29625 var len = Math.min(str.length, end);
29628 var c = str.charCodeAt(i) - 48;
29678 function parseBase(str, start, end, mul) {
29680 var len = Math.min(str.length, end);
29683 var c = str.charCodeAt(i) - 48;
33213 function parseHex(str, start, end) {
33215 var len = Math.min(str.length, end);
33219 var c = str.charCodeAt(i) - 48;
33235 assert(!(z & 0xf0), 'Invalid character in ' + str);
33274 function parseBase(str, start, end, mul) {
33277 var len = Math.min(str.length, end);
33280 var c = str.charCodeAt(i) - 48;
39352 var str = '';
39354 str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim();
39355 if (this.length > max) str += ' ... ';
39356 return '<Buffer ' + str + '>';
40396 function base64clean(str) {
40398str = str.split('=')[0]; // Node strips out invalid characters like \n and \t from the string, bas…
40400 str = str.trim().replace(INVALID_BASE64_RE, ''); // Node converts strings with length < 2 to ''
40402 …if (str.length < 2) return ''; // Node allows for non-padded base64 strings (missing trailing ===)…
40404 while (str.length % 4 !== 0) {
40405 str = str + '=';
40408 return str;
40481 function asciiToBytes(str) {
40484 for (var i = 0; i < str.length; ++i) {
40486 byteArray.push(str.charCodeAt(i) & 0xFF);
40492 function utf16leToBytes(str, units) {
40496 for (var i = 0; i < str.length; ++i) {
40498 c = str.charCodeAt(i);
40508 function base64ToBytes(str) {
40509 return base64.toByteArray(base64clean(str));
45207 var str = num.toString(2);
45209 while (str.length < size) {
45210 str = '0' + str;
45216 out.push(str.slice(i, i + group));
50982 function crc32str(crc, str, len, pos) {
50988 crc = crc >>> 8 ^ t[(crc ^ str.charCodeAt(i)) & 0xFF];
53682 var string2buf = function string2buf(str) {
53688 str_len = str.length,
53692 c = str.charCodeAt(m_pos);
53695 c2 = str.charCodeAt(m_pos + 1);
53715 c = str.charCodeAt(m_pos);
53718 c2 = str.charCodeAt(m_pos + 1);
53788 var str, i, out, c, c_len;
53855 exports.utf8encode = function utf8encode(str) {
53857 return nodejsUtils.newBufferFrom(str, "utf-8");
53860 return string2buf(str);
53989 function string2binary(str) {
53993 result = new Uint8Array(str.length);
53995 result = new Array(str.length);
53998 return stringToArrayLike(str, result);
54054 function stringToArrayLike(str, array) {
54055 for (var i = 0; i < str.length; ++i) {
54056 array[i] = str.charCodeAt(i) & 0xFF;
54352 exports.pretty = function (str) {
54357 for (i = 0; i < (str || "").length; i++) {
54358 code = str.charCodeAt(i);
62746 exports.string2buf = function (str) {
62752 str_len = str.length,
62756 c = str.charCodeAt(m_pos);
62759 c2 = str.charCodeAt(m_pos + 1);
62774 c = str.charCodeAt(m_pos);
62777 c2 = str.charCodeAt(m_pos + 1);
62835 exports.binstring2buf = function (str) {
62836 var buf = new utils.Buf8(str.length);
62839 buf[i] = str.charCodeAt(i);
63476 var p, n, m, more, str; //Assert(s->lookahead < MIN_LOOKAHEAD, "already enough lookahead");
63556 str = s.strstart - s.insert;
63557 s.ins_h = s.window[str];
63560 s.ins_h = (s.ins_h << s.hash_shift ^ s.window[str + 1]) & s.hash_mask; //#if MIN_MATCH != 3
63566 s.ins_h = (s.ins_h << s.hash_shift ^ s.window[str + MIN_MATCH - 1]) & s.hash_mask;
63567 s.prev[str & s.w_mask] = s.head[s.ins_h];
63568 s.head[s.ins_h] = str;
63569 str++;
65139 var str, n;
65205 str = s.strstart;
65210 s.ins_h = (s.ins_h << s.hash_shift ^ s.window[str + MIN_MATCH - 1]) & s.hash_mask;
65211 s.prev[str & s.w_mask] = s.head[s.ins_h];
65212 s.head[s.ins_h] = str;
65213 str++;
65216 s.strstart = str;
71365 function startsWith(str, search, pos) {
71366 return str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search;
71370 function endsWith(str, search, this_len) {
71371 if (this_len === undefined || this_len > str.length) {
71372 this_len = str.length;
71375 return str.substring(this_len - search.length, this_len) === search;
71379 function includes(str, search, start) {
71384 if (start + search.length > str.length) {
71387 return str.indexOf(search, start) !== -1;
74076 var str = p.data;
74077 var nb = n > str.length ? str.length : n;
74078 if (nb === str.length) ret += str;else ret += str.slice(0, n);
74082 if (nb === str.length) {
74087 p.data = str.slice(nb);
80125 var str = p.data;
80126 var nb = n > str.length ? str.length : n;
80127 if (nb === str.length) ret += str;else ret += str.slice(0, n);
80131 if (nb === str.length) {
80136 p.data = str.slice(nb);
81886 var str = String(f).replace(formatRegExp, function (x) {
81911 str += ' ' + x;
81913 str += ' ' + inspect(x);
81917 return str;
82046 function stylizeWithColor(str, styleType) {
82050 … return "\x1B[" + inspect.colors[style][0] + 'm' + str + "\x1B[" + inspect.colors[style][1] + 'm';
82052 return str;
82056 function stylizeNoColor(str, styleType) {
82057 return str;
82219 var name, str, desc;
82226 str = ctx.stylize('[Getter/Setter]', 'special');
82228 str = ctx.stylize('[Getter]', 'special');
82232 str = ctx.stylize('[Setter]', 'special');
82240 if (!str) {
82243 str = formatValue(ctx, desc.value, null);
82245 str = formatValue(ctx, desc.value, recurseTimes - 1);
82248 if (str.indexOf('\n') > -1) {
82250 str = str.split('\n').map(function (line) {
82254 str = '\n' + str.split('\n').map(function (line) {
82260 str = ctx.stylize('[Circular]', 'special');
82266 return str;
82280 return name + ': ' + str;
83152 function stringToBytes(str) {
83153 str = unescape(encodeURIComponent(str)); // UTF8 escape
83157 for (var i = 0; i < str.length; ++i) {
83158 bytes.push(str.charCodeAt(i));