Searched refs:charCodeAt (Results 1 – 25 of 266) sorted by relevance
1234567891011
/third_party/jerryscript/tests/jerry/ |
D | string-prototype-charcodeat.js | 26 assert(Object.getOwnPropertyDescriptor(String.prototype.charCodeAt, 'length').configurable === leng… 28 assert(Object.getOwnPropertyDescriptor(String.prototype.charCodeAt, 'length').enumerable === false); 30 assert(Object.getOwnPropertyDescriptor(String.prototype.charCodeAt, 'length').writable === false); 32 assert(String.prototype.charCodeAt.length === 1); 35 assert(isNaN(String.prototype.charCodeAt.call(new String()))); 38 assert(String.prototype.charCodeAt.call({}) === 91); 41 assert("hello world!".charCodeAt(0) === 104); 43 assert("hello world!".charCodeAt(1) === 101); 45 assert("HELLO WORLD".charCodeAt(10) === 68); 48 assert(isNaN("hello world!".charCodeAt(-Infinity))); [all …]
|
D | escape-sequences.js | 32 assert ((new String ('\\')).charCodeAt (0) === 92); 33 assert ((new String ('\b')).charCodeAt (0) === 8); 34 assert ((new String ('\f')).charCodeAt (0) === 12); 35 assert ((new String ('\n')).charCodeAt (0) === 10); 36 assert ((new String ('\r')).charCodeAt (0) === 13); 37 assert ((new String ('\t')).charCodeAt (0) === 9); 38 assert ((new String ('\v')).charCodeAt (0) === 11);
|
/third_party/css-what/src/ |
D | parse.ts | 172 isWhitespace(selector.charCodeAt(selectorIndex)) 189 selector.charCodeAt(selectorIndex) === 195 selector.charCodeAt(selectorIndex) === 213 while (selector.charCodeAt(--pos) === CharCode.BackSlash) slashCount++; 277 const firstChar = selector.charCodeAt(selectorIndex); 335 if (selector.charCodeAt(selectorIndex) === CharCode.Pipe) { 345 selector.charCodeAt(selectorIndex) === CharCode.Pipe && 346 selector.charCodeAt(selectorIndex + 1) !== 360 selector.charCodeAt(selectorIndex) 367 selector.charCodeAt(selectorIndex + 1) !== [all …]
|
/third_party/node/deps/cjs-module-lexer/ |
D | lexer.js | 61 const surrogatePrefix = decoded.charCodeAt(i) & 0xFC00; 68 if ((decoded.charCodeAt(++i) & 0xFC00) !== 0xDC00) 92 if (source.charCodeAt(0) === 35/*#*/ && source.charCodeAt(1) === 33/*!*/) { 97 ch = source.charCodeAt(pos); 104 ch = source.charCodeAt(pos); 123 …ith('interopRequireWildcard', pos + 1) && (keywordStart(pos) || source.charCodeAt(pos - 1) === 46/… 126 if (source.charCodeAt(pos) === 40/*(*/) { 134 …else if (source.startsWith('_export', pos + 1) && (keywordStart(pos) || source.charCodeAt(pos - 1)… 138 if (source.charCodeAt(pos) === 40/*(*/) { 140 if (source.charCodeAt(++pos) === 114/*r*/) [all …]
|
/third_party/node/deps/undici/src/node_modules/busboy/lib/ |
D | utils.js | 12 const code = str.charCodeAt(i); 28 const code = str.charCodeAt(i); 52 const code = str.charCodeAt(i); 62 if (str.charCodeAt(i++) !== 59/* ';' */) 67 const code = str.charCodeAt(i); 80 const code = str.charCodeAt(i); 101 if (str.charCodeAt(i) === 34/* '"' */) { 106 const code = str.charCodeAt(i); 144 const code = str.charCodeAt(i); 171 const code = str.charCodeAt(i); [all …]
|
/third_party/node/test/fixtures/wpt/html/webappapis/atob/ |
D | base64.any.js | 12 if (s.charCodeAt(i) > 255) { 20 groupsOfSix[0] = s.charCodeAt(i) >> 2; 21 groupsOfSix[1] = (s.charCodeAt(i) & 0x03) << 4; 23 groupsOfSix[1] |= s.charCodeAt(i + 1) >> 4; 24 groupsOfSix[2] = (s.charCodeAt(i + 1) & 0x0f) << 2; 27 groupsOfSix[2] |= s.charCodeAt(i + 2) >> 6; 28 groupsOfSix[3] = s.charCodeAt(i + 2) & 0x3f; 47 return String.fromCharCode(idx + 'A'.charCodeAt(0)); 50 return String.fromCharCode(idx - 26 + 'a'.charCodeAt(0)); 53 return String.fromCharCode(idx - 52 + '0'.charCodeAt(0)); [all …]
|
/third_party/typescript/src/compiler/ |
D | scanner.ts | 370 const ch = text.charCodeAt(pos); 374 if (text.charCodeAt(pos) === CharacterCodes.lineFeed) { 540 const ch = text.charCodeAt(pos); 574 const ch = text.charCodeAt(pos); 577 if (text.charCodeAt(pos + 1) === CharacterCodes.lineFeed) { 598 if (text.charCodeAt(pos + 1) === CharacterCodes.slash) { 601 if (isLineBreak(text.charCodeAt(pos))) { 609 if (text.charCodeAt(pos + 1) === CharacterCodes.asterisk) { 612 …if (text.charCodeAt(pos) === CharacterCodes.asterisk && text.charCodeAt(pos + 1) === CharacterCode… 669 if (pos === 0 || isLineBreak(text.charCodeAt(pos - 1))) { [all …]
|
/third_party/node/deps/npm/node_modules/imurmurhash/ |
D | imurmurhash.js | 46 case 0: k1 ^= len > i ? (key.charCodeAt(i++) & 0xffff) : 0; 47 case 1: k1 ^= len > i ? (key.charCodeAt(i++) & 0xffff) << 8 : 0; 48 case 2: k1 ^= len > i ? (key.charCodeAt(i++) & 0xffff) << 16 : 0; 50 k1 ^= len > i ? (key.charCodeAt(i) & 0xff) << 24 : 0; 51 k1 ^= len > i ? (key.charCodeAt(i++) & 0xff00) >> 8 : 0; 71 k1 = ((key.charCodeAt(i++) & 0xffff)) ^ 72 ((key.charCodeAt(i++) & 0xffff) << 8) ^ 73 ((key.charCodeAt(i++) & 0xffff) << 16); 74 top = key.charCodeAt(i++); 81 case 3: k1 ^= (key.charCodeAt(i + 2) & 0xffff) << 16; [all …]
|
D | imurmurhash.min.js | 12 …charCodeAt(r++):0;case 1:h^=i>r?(65535&t.charCodeAt(r++))<<8:0;case 2:h^=i>r?(65535&t.charCodeAt(r…
|
/third_party/node/deps/npm/node_modules/base64-js/ |
D | index.js | 14 revLookup[code.charCodeAt(i)] = i 19 revLookup['-'.charCodeAt(0)] = 62 20 revLookup['_'.charCodeAt(0)] = 63 71 (revLookup[b64.charCodeAt(i)] << 18) | 72 (revLookup[b64.charCodeAt(i + 1)] << 12) | 73 (revLookup[b64.charCodeAt(i + 2)] << 6) | 74 revLookup[b64.charCodeAt(i + 3)] 82 (revLookup[b64.charCodeAt(i)] << 2) | 83 (revLookup[b64.charCodeAt(i + 1)] >> 4) 89 (revLookup[b64.charCodeAt(i)] << 10) | [all …]
|
D | base64js.min.js | 1 …charCodeAt(c)]<<18|l[a.charCodeAt(c+1)]<<12|l[a.charCodeAt(c+2)]<<6|l[a.charCodeAt(c+3)],j[k++]=25…
|
/third_party/typescript/src/services/ |
D | patternMatcher.ts | 181 … if (chunk.text.length < candidate.length && isUpperCaseLetter(candidate.charCodeAt(index))) { 271 …e(0, patternSpan.length, i => equalChars(pattern.charCodeAt(patternSpan.start + i), candidate.char… 315 … if (!isUpperCaseLetter(chunk.text.charCodeAt(chunkCharacterSpans[currentChunkSpan - 1].start)) || 316 … !isUpperCaseLetter(chunk.text.charCodeAt(chunkCharacterSpans[currentChunkSpan].start))) { 394 … if (every(value, (valueChar, i) => toLowerCase(str.charCodeAt(i + start)) === valueChar)) { 414 return String.fromCharCode(ch).toLowerCase().charCodeAt(0); 432 const ch = pattern.charCodeAt(i); 477 const lastIsDigit = isDigit(identifier.charCodeAt(i - 1)); 478 const currentIsDigit = isDigit(identifier.charCodeAt(i)); 483 if (charIsPunctuation(identifier.charCodeAt(i - 1)) || [all …]
|
/third_party/node/deps/npm/node_modules/fastest-levenshtein/ |
D | mod.js | 14 peq[a.charCodeAt(i)] |= 1 << i; 17 var eq = peq[b.charCodeAt(i)]; 34 peq[a.charCodeAt(i)] = 0; 56 peq[b.charCodeAt(k)] |= 1 << k; 59 var eq = peq[a.charCodeAt(i)]; 78 peq[b.charCodeAt(k)] = 0; 86 peq[b.charCodeAt(k)] |= 1 << k; 90 var eq = peq[a.charCodeAt(i)]; 111 peq[b.charCodeAt(k)] = 0;
|
/third_party/node/deps/npm/node_modules/fastest-levenshtein/esm/ |
D | mod.js | 11 peq[a.charCodeAt(i)] |= 1 << i; 14 let eq = peq[b.charCodeAt(i)]; 31 peq[a.charCodeAt(i)] = 0; 53 peq[b.charCodeAt(k)] |= 1 << k; 56 const eq = peq[a.charCodeAt(i)]; 75 peq[b.charCodeAt(k)] = 0; 83 peq[b.charCodeAt(k)] |= 1 << k; 87 const eq = peq[a.charCodeAt(i)]; 108 peq[b.charCodeAt(k)] = 0;
|
/third_party/protobuf/js/experimental/runtime/testing/ |
D | ensure_custom_equality_test.js | 24 'h'.charCodeAt(0), 25 'a'.charCodeAt(0), 26 'l'.charCodeAt(0), 27 'l'.charCodeAt(0), 28 'o'.charCodeAt(0),
|
/third_party/typescript/tests/baselines/reference/ |
D | restTupleElements1.types | 209 f1([x => x * 2, x => x.length, x => x.charCodeAt(0)]); 210 >f1([x => x * 2, x => x.length, x => x.charCodeAt(0)]) : void 212 >[x => x * 2, x => x.length, x => x.charCodeAt(0)] : [(x: number) => number, (x: string) => number,… 223 >x => x.charCodeAt(0) : (x: string) => number 225 >x.charCodeAt(0) : number 226 >x.charCodeAt : (index: number) => number 228 >charCodeAt : (index: number) => number 231 f2(x => x * 2, x => x.length, x => x.charCodeAt(0)); 232 >f2(x => x * 2, x => x.length, x => x.charCodeAt(0)) : void 244 >x => x.charCodeAt(0) : (x: string) => number [all …]
|
D | relativePathToDeclarationFile.types | 18 var x = new relMod(other.M2.x.charCodeAt(0)); 20 >new relMod(other.M2.x.charCodeAt(0)) : relMod 22 >other.M2.x.charCodeAt(0) : number 23 >other.M2.x.charCodeAt : (index: number) => number 29 >charCodeAt : (index: number) => number
|
/third_party/jsframework/runtime/main/extend/systemplugin/napi/ |
D | ohos_rpc.js | 603 this.PING_TRANSACTION = ('_'.charCodeAt(0) << 24) | ('P'.charCodeAt(0) << 16) | 604 ('N'.charCodeAt(0) << 8) | 'G'.charCodeAt(0); 605 this.DUMP_TRANSACTION = ('_'.charCodeAt(0) << 24) | ('D'.charCodeAt(0) << 16) | 606 ('M'.charCodeAt(0) << 8) | 'P'.charCodeAt(0); 607 this.INTERFACE_TRANSACTION = ('_'.charCodeAt(0) << 24) | ('N'.charCodeAt(0) << 16) | 608 ('T'.charCodeAt(0) << 8) | 'F'.charCodeAt(0);
|
/third_party/typescript/src/testRunner/unittests/services/extract/ |
D | helpers.ts | 21 if (source.charCodeAt(pos) === CharacterCodes.openBracket && 22 …(source.charCodeAt(pos + 1) === CharacterCodes.hash || source.charCodeAt(pos + 1) === CharacterCod… 28 if (source.charCodeAt(pos) === CharacterCodes.bar) { 32 … ? source.charCodeAt(saved + 1) === CharacterCodes.hash ? "selection" : "extracted" 42 …else if (source.charCodeAt(pos) === CharacterCodes.bar && source.charCodeAt(pos + 1) === Character… 59 while (isIdentifierPart(source.charCodeAt(pos), ScriptTarget.Latest)) {
|
/third_party/node/deps/npm/node_modules/postcss-selector-parser/dist/ |
D | tokenize.js | 15 hex[hexChars.charCodeAt(i)] = true; 27 code = css.charCodeAt(next); 47 var code = css.charCodeAt(next + 1); 56 code = css.charCodeAt(next + 1); 98 code = css.charCodeAt(start); 112 code = css.charCodeAt(next); 130 code = css.charCodeAt(next); 169 while (css.charCodeAt(escapePos - 1) === t.backslash) { 180 if (code === t.slash && css.charCodeAt(start + 1) === t.asterisk) {
|
/third_party/typescript/src/harness/ |
D | util.ts | 70 if (!ts.isWhiteSpaceLike(line.charCodeAt(i))) { 83 const ch0 = text.charCodeAt(0); 85 if (ch0 === 0xfe) return text.length >= 2 && text.charCodeAt(1) === 0xff ? 2 : 0; 86 if (ch0 === 0xff) return text.length >= 2 && text.charCodeAt(1) === 0xfe ? 2 : 0; 87 …if (ch0 === 0xef) return text.length >= 3 && text.charCodeAt(1) === 0xbb && text.charCodeAt(2) ===…
|
/third_party/node/deps/cjs-module-lexer/dist/ |
D | lexer.js | 1 …charCodeAt(A);if(!(B<55296)){if(55296!==B)return;if(56320!=(64512&Q.charCodeAt(++A)))return}}retur…
|
/third_party/node/lib/ |
D | url.js | 208 const code = url.charCodeAt(i); 311 slashes = rest.charCodeAt(0) === CHAR_FORWARD_SLASH && 312 rest.charCodeAt(1) === CHAR_FORWARD_SLASH; 338 switch (rest.charCodeAt(i)) { 473 const code = rest.charCodeAt(i); 528 const code = hostname.charCodeAt(i); 569 const escapedChar = escapedCodes[rest.charCodeAt(i)]; 680 if (protocol && protocol.charCodeAt(protocol.length - 1) !== 58/* : */) 686 switch (pathname.charCodeAt(i)) { 712 if (pathname && pathname.charCodeAt(0) !== CHAR_FORWARD_SLASH) [all …]
|
/third_party/protobuf/js/binary/ |
D | utils.js | 294 var a = hash.charCodeAt(0); 295 var b = hash.charCodeAt(1); 296 var c = hash.charCodeAt(2); 297 var d = hash.charCodeAt(3); 298 var e = hash.charCodeAt(4); 299 var f = hash.charCodeAt(5); 300 var g = hash.charCodeAt(6); 301 var h = hash.charCodeAt(7); 661 muladd(10, dec.charCodeAt(i) - jspb.utils.ZERO_CHAR_CODE_); 717 var c = hash.charCodeAt(7 - i); [all …]
|
/third_party/parse5/packages/parse5/lib/tokenizer/ |
D | preprocessor.ts | 75 const nextCp = this.html.charCodeAt(this.pos + 1); 144 const cp = this.html.charCodeAt(this.pos + i) | 0x20; 146 if (cp !== pattern.charCodeAt(i)) { 162 return this.html.charCodeAt(pos); 180 let cp = this.html.charCodeAt(this.pos);
|
1234567891011