Searched refs:charCodeAt (Results 1 – 25 of 283) sorted by relevance
12345678910>>...12
/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 …]
|
D | stringify.ts | 7 attribValChars.map((c) => c.charCodeAt(0)) 10 pseudoValChars.map((c) => c.charCodeAt(0)) 27 ].map((c) => c.charCodeAt(0)) 172 if (charsToEscape.has(str.charCodeAt(i))) {
|
/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/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/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/typescript/src/compiler/ |
D | scanner.ts | 361 const ch = text.charCodeAt(pos); 365 if (text.charCodeAt(pos) === CharacterCodes.lineFeed) { 531 const ch = text.charCodeAt(pos); 564 const ch = text.charCodeAt(pos); 567 if (text.charCodeAt(pos + 1) === CharacterCodes.lineFeed) { 587 if (text.charCodeAt(pos + 1) === CharacterCodes.slash) { 590 if (isLineBreak(text.charCodeAt(pos))) { 597 if (text.charCodeAt(pos + 1) === CharacterCodes.asterisk) { 600 …if (text.charCodeAt(pos) === CharacterCodes.asterisk && text.charCodeAt(pos + 1) === CharacterCode… 646 if (pos === 0 || isLineBreak(text.charCodeAt(pos - 1))) { [all …]
|
/third_party/node/deps/npm/node_modules/node-fetch-npm/src/ |
D | common.js | 46 if (!isValidTokenChar(val.charCodeAt(0))) { return false } 49 if (!isValidTokenChar(val.charCodeAt(1))) { return false } 51 if (!isValidTokenChar(val.charCodeAt(2))) { return false } 53 if (!isValidTokenChar(val.charCodeAt(3))) { return false } 55 if (!isValidTokenChar(val.charCodeAt(i))) { return false } 78 var c = val.charCodeAt(0) 81 c = val.charCodeAt(1) 84 c = val.charCodeAt(2) 87 c = val.charCodeAt(i)
|
/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/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/freetype/docs/reference/assets/javascripts/lunr/ |
D | lunr.stemmer.support.js | 9 …charCodeAt(s);return i},!r&&""!=r||!t&&0!=t||!i)throw"Bad Among initialisation: s:"+r+", substring…
|
/third_party/typescript/scripts/ |
D | createPlaygroundBuild.js | 238 var _backspace = '\b'.charCodeAt(0); 239 var _formFeed = '\f'.charCodeAt(0); 240 var _newLine = '\n'.charCodeAt(0); 242 var _carriageReturn = '\r'.charCodeAt(0); 243 var _tab = '\t'.charCodeAt(0); 244 var _verticalTab = '\v'.charCodeAt(0); 245 var _backslash = '\\'.charCodeAt(0); 246 var _doubleQuote = '"'.charCodeAt(0); 251 chrCode = text.charCodeAt(i);
|
/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
|
D | relativePathToDeclarationFile.symbols | 18 var x = new relMod(other.M2.x.charCodeAt(0)); 21 >other.M2.x.charCodeAt : Symbol(String.charCodeAt, Decl(lib.es5.d.ts, --, --)) 27 >charCodeAt : Symbol(String.charCodeAt, Decl(lib.es5.d.ts, --, --))
|
/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/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/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/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 | 182 const code = url.charCodeAt(i); 287 slashes = rest.charCodeAt(0) === CHAR_FORWARD_SLASH && 288 rest.charCodeAt(1) === CHAR_FORWARD_SLASH; 314 switch (rest.charCodeAt(i)) { 429 const code = rest.charCodeAt(i); 485 const code = hostname.charCodeAt(i); 530 const escapedChar = escapedCodes[rest.charCodeAt(i)]; 619 if (protocol && protocol.charCodeAt(protocol.length - 1) !== 58/* : */) 625 switch (pathname.charCodeAt(i)) { 651 if (pathname && pathname.charCodeAt(0) !== CHAR_FORWARD_SLASH) [all …]
|
/third_party/weex-loader/test/ |
D | webpack.config.js | 7 var count = end.charCodeAt(0) - start.charCodeAt(0) 11 var name = String.fromCharCode(i + start.charCodeAt(0))
|
/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/node/test/parallel/ |
D | test-repl-array-prototype-tempering.js | 15 const SPACE = ' '.charCodeAt(); 16 const BRACKET = '>'.charCodeAt(); 17 const DOT = '.'.charCodeAt();
|
12345678910>>...12