Searched refs:asciiString (Results 1 – 4 of 4) sorted by relevance
/third_party/node/deps/npm/node_modules/iconv-lite/encodings/ |
D | sbcs-codec.js | 17 var asciiString = ""; 19 asciiString += String.fromCharCode(i); 20 codecOptions.chars = asciiString + codecOptions.chars;
|
/third_party/node/test/parallel/ |
D | test-buffer-alloc.js | 130 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 …]
|
D | test-buffer-includes.js | 210 const asciiString = Buffer.from( constant 212 assert(!asciiString.includes('\x2061')); 213 assert(asciiString.includes('leb', 0));
|
D | test-buffer-indexof.js | 275 const asciiString = Buffer.from( constant 277 assert.strictEqual(-1, asciiString.indexOf('\x2061')); 278 assert.strictEqual(asciiString.indexOf('leb', 0), 3);
|