Home
last modified time | relevance | path

Searched refs:asciiString (Results 1 – 4 of 4) sorted by relevance

/third_party/node/deps/npm/node_modules/iconv-lite/encodings/
Dsbcs-codec.js17 var asciiString = "";
19 asciiString += String.fromCharCode(i);
20 codecOptions.chars = asciiString + codecOptions.chars;
/third_party/node/test/parallel/
Dtest-buffer-alloc.js130 const asciiString = 'hello world'; constant
132 for (let i = 0; i < asciiString.length; i++) {
133 b[i] = asciiString.charCodeAt(i);
135 const asciiSlice = b.toString('ascii', 0, asciiString.length);
136 assert.strictEqual(asciiString, asciiSlice);
140 const asciiString = 'hello world'; constant
143 assert.strictEqual(asciiString.length, b.write(asciiString, offset, 'ascii'));
144 const asciiSlice = b.toString('ascii', offset, offset + asciiString.length);
145 assert.strictEqual(asciiString, asciiSlice);
149 const asciiString = 'hello world'; constant
[all …]
Dtest-buffer-includes.js210 const asciiString = Buffer.from( constant
212 assert(!asciiString.includes('\x2061'));
213 assert(asciiString.includes('leb', 0));
Dtest-buffer-indexof.js275 const asciiString = Buffer.from( constant
277 assert.strictEqual(-1, asciiString.indexOf('\x2061'));
278 assert.strictEqual(asciiString.indexOf('leb', 0), 3);