Searched refs:charCodeAt (Results 1 – 25 of 83) sorted by relevance
1234
/external/v8/test/mjsunit/ |
D | string-charcodeat.js | 98 n.charCodeAt = String.prototype.charCodeAt; 106 n.charCodeAt = String.prototype.charCodeAt; 116 assertTrue(isNaN(g().charCodeAt(-1e19)), 1 + t); 117 assertTrue(isNaN(g().charCodeAt(-0x80000001)), 2 + t); 118 assertTrue(isNaN(g().charCodeAt(-0x80000000)), 3 + t); 119 assertTrue(isNaN(g().charCodeAt(-0x40000000)), 4 + t); 120 assertTrue(isNaN(g().charCodeAt(-1)), 5 + t); 121 assertTrue(isNaN(g().charCodeAt(len)), 6 + t); 122 assertTrue(isNaN(g().charCodeAt(len + 1)), 7 + t); 123 assertTrue(isNaN(g().charCodeAt(0x3fffffff)), 8 + t); [all …]
|
D | string-charat.js | 59 assertEquals(116, s().charCodeAt()); 60 assertEquals(116, s().charCodeAt("string")); 61 assertEquals(116, s().charCodeAt(null)); 62 assertEquals(116, s().charCodeAt(void 0)); 63 assertEquals(116, s().charCodeAt(false)); 64 assertEquals(101, s().charCodeAt(true)); 65 assertEquals(116, s().charCodeAt(0)); 66 assertEquals(116, s().charCodeAt(-0.0)); 67 assertEquals(116, s().charCodeAt(-0.1)); 68 assertEquals(116, s().charCodeAt(0.4)); [all …]
|
D | uri.js | 67 assertEquals(cc1, decodeURI(encodeURI(s1)).charCodeAt(0)); 68 assertEquals(cc2, decodeURI(encodeURI(s2)).charCodeAt(0)); 69 assertEquals(cc3, decodeURI(encodeURI(s3)).charCodeAt(0)); 70 assertEquals(cc4, decodeURI(encodeURI(s4)).charCodeAt(0)); 71 assertEquals(cc5, decodeURI(encodeURI(s5)).charCodeAt(0)); 72 assertEquals(cc6, decodeURI(encodeURI(s6)).charCodeAt(0)); 73 assertEquals(cc7, decodeURI(encodeURI(s7)).charCodeAt(0)); 74 assertEquals(cc8_1, decodeURI(encodeURI(s8)).charCodeAt(0)); 75 assertEquals(cc8_2, decodeURI(encodeURI(s8)).charCodeAt(1)); 76 assertEquals(cc9_1, decodeURI(encodeURI(s9)).charCodeAt(0)); [all …]
|
D | string-case.js | 33 var A_CODE = "A".charCodeAt(0); 34 var Z_CODE = "Z".charCodeAt(0); 35 var a_CODE = "a".charCodeAt(0); 36 var z_CODE = "z".charCodeAt(0);
|
D | constant-folding-2.js | 232 assertEquals(99, "abc".charCodeAt(2)); 233 assertEquals("NaN", String("abc".charCodeAt(-1))); 234 assertEquals("NaN", String("abc".charCodeAt(4))); 235 assertEquals(98, "abc".charCodeAt(1.1)); 236 assertEquals("NaN", String("abc".charCodeAt(4.1)));
|
D | unicode-test.js | 9121 if (c.charCodeAt(0) > last_c && 9122 c.charCodeAt(0) - 20 < last_c) { 9127 last_c = c.charCodeAt(0); 9151 var c = re.charCodeAt(i);
|
D | no-octal-constants-above-256.js | 31 assertEquals("\40".charCodeAt(0), "\400".charCodeAt(0));
|
D | keyed-call-ic.js | 96 assertEquals(string.charCodeAt(i), result, message); 105 assertEquals(string.charCodeAt(i), result, message);
|
D | string-flatten.js | 37 assertEquals(57, s.charCodeAt(0));
|
/external/v8/test/webkit/ |
D | char-at-expected.txt | 24 This is a test of the charAt and charCodeAt string functions. 30 PASS "".charCodeAt() is NaN 32 PASS "".charCodeAt(undefined) is NaN 34 PASS "".charCodeAt(0) is NaN 36 PASS "".charCodeAt(null) is NaN 38 PASS "".charCodeAt(false) is NaN 40 PASS "".charCodeAt(true) is NaN 42 PASS "".charCodeAt(0) is NaN 44 PASS "".charCodeAt(0.1) is NaN 46 PASS "".charCodeAt(999) is NaN [all …]
|
D | dfg-double-vote-fuzz.js | 35 …code += " var " + String.fromCharCode("d".charCodeAt(0) + j) + " = " + ((i & (1 << ((j / 2) | 0… 71 …code += " " + String.fromCharCode("d".charCodeAt(0) + j) + " = __i + " + j + " + " + ((…
|
/external/v8/test/mjsunit/regress/ |
D | regress-678525.js | 28 assertEquals(0, '\0'.charCodeAt(0)); 29 assertEquals(1, '\1'.charCodeAt(0)); 30 assertEquals(2, '\2'.charCodeAt(0)); 31 assertEquals(3, '\3'.charCodeAt(0)); 32 assertEquals(4, '\4'.charCodeAt(0)); 33 assertEquals(5, '\5'.charCodeAt(0)); 34 assertEquals(6, '\6'.charCodeAt(0)); 35 assertEquals(7, '\7'.charCodeAt(0)); 36 assertEquals(56, '\8'.charCodeAt(0)); 56 assertEquals(73, '\111'.charCodeAt(0)); [all …]
|
D | regress-latin-1.js | 31 assertEquals(0x80, JSON.stringify("\x80").charCodeAt(1)); 32 assertEquals(0x80, JSON.stringify("\x80", 0, null).charCodeAt(1));
|
D | regress-545.js | 40 new IsPrimitive(load())?this.join():String(' ').charCodeAt((!this>Math));
|
D | regress-166553.js | 33 assertEquals(65525, s.charCodeAt(1))
|
D | d8-readbuffer.js | 39 assertEquals(expected.charCodeAt(i), a[i]);
|
/external/antlr/antlr-3.4/runtime/ActionScript/project/test/org/antlr/runtime/test/ |
D | TestANTLRStringStream.as | 46 assertEquals(stream.LA(1), "a".charCodeAt(0)); 47 assertEquals(stream.LA(2), "b".charCodeAt(0)); 48 assertEquals(stream.LA(3), "c".charCodeAt(0)); 54 assertEquals(stream.LA(-1), "a".charCodeAt(0)); 56 assertEquals(stream.LA(1), "b".charCodeAt(0)); 57 assertEquals(stream.LA(2), "c".charCodeAt(0));
|
/external/chromium-trace/catapult/third_party/vinn/third_party/parse5/lib/tokenization/ |
D | preprocessor.js | 32 this.pos = this.html.charCodeAt(0) === $.BOM ? 0 : -1; 59 var cp = this.html.charCodeAt(this.pos); 85 var nextCp = this.html.charCodeAt(this.pos + 1);
|
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/ |
D | DFA.js | 48 c = c.charCodeAt(0); 132 n = encodedString.charCodeAt(i); 133 v = encodedString.charCodeAt(i+1);
|
/external/libvncserver/webclients/novnc/include/ |
D | jsunzip.js | 39 return (this.data.charCodeAt(offset + 3) & 0xff) << 24 | 40 (this.data.charCodeAt(offset + 2) & 0xff) << 16 | 41 (this.data.charCodeAt(offset + 1) & 0xff) << 8 | 42 (this.data.charCodeAt(offset + 0) & 0xff); 45 return (this.data.charCodeAt(offset + 1) & 0xff) << 8 | 46 (this.data.charCodeAt(offset + 0) & 0xff); 49 return this.data.charCodeAt(offset) & 0xff;
|
D | base64.js | 81 var c = toBinaryTable[data.charCodeAt(i) & 0x7f]; 85 console.error("Illegal character code " + data.charCodeAt(i) + " at position " + i);
|
/external/chromium-trace/catapult/tracing/tracing_examples/ |
D | string_convert.js | 38 nUint24 |= b64ToUint6(sB64Enc.charCodeAt(nInIdx)) << 18 - 6 * nMod4; 123 nChr = sDOMStr.charCodeAt(nMapIdx); 132 nChr = sDOMStr.charCodeAt(nChrIdx);
|
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/ |
D | DFA.as | 188 size += encodedString.charCodeAt(i); 194 var n:int = encodedString.charCodeAt(i); 198 var lowBits:int = encodedString.charCodeAt(i); 203 var v:int = encodedString.charCodeAt(i+1); 207 lowBits = encodedString.charCodeAt(i);
|
/external/v8/test/mjsunit/compiler/ |
D | inlined-call.js | 150 var code = str.charCodeAt(3); 154 return "".charCodeAt.call(str, 3);
|
/external/v8/test/webkit/resources/ |
D | json2-es5-compat.js | 216 '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); 440 ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
|
1234