Home
last modified time | relevance | path

Searched refs:charCodeAt (Results 1 – 25 of 83) sorted by relevance

1234

/external/v8/test/mjsunit/
Dstring-charcodeat.js98 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 …]
Dstring-charat.js59 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 …]
Duri.js67 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 …]
Dstring-case.js33 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);
Dconstant-folding-2.js232 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)));
Dunicode-test.js9121 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);
Dno-octal-constants-above-256.js31 assertEquals("\40".charCodeAt(0), "\400".charCodeAt(0));
Dkeyed-call-ic.js96 assertEquals(string.charCodeAt(i), result, message);
105 assertEquals(string.charCodeAt(i), result, message);
Dstring-flatten.js37 assertEquals(57, s.charCodeAt(0));
/external/v8/test/webkit/
Dchar-at-expected.txt24 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 …]
Ddfg-double-vote-fuzz.js35 …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/
Dregress-678525.js28 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 …]
Dregress-latin-1.js31 assertEquals(0x80, JSON.stringify("\x80").charCodeAt(1));
32 assertEquals(0x80, JSON.stringify("\x80", 0, null).charCodeAt(1));
Dregress-545.js40 new IsPrimitive(load())?this.join():String('&#10;').charCodeAt((!this>Math));
Dregress-166553.js33 assertEquals(65525, s.charCodeAt(1))
Dd8-readbuffer.js39 assertEquals(expected.charCodeAt(i), a[i]);
/external/antlr/antlr-3.4/runtime/ActionScript/project/test/org/antlr/runtime/test/
DTestANTLRStringStream.as46 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/
Dpreprocessor.js32 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/
DDFA.js48 c = c.charCodeAt(0);
132 n = encodedString.charCodeAt(i);
133 v = encodedString.charCodeAt(i+1);
/external/libvncserver/webclients/novnc/include/
Djsunzip.js39 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;
Dbase64.js81 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/
Dstring_convert.js38 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/
DDFA.as188 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/
Dinlined-call.js150 var code = str.charCodeAt(3);
154 return "".charCodeAt.call(str, 3);
/external/v8/test/webkit/resources/
Djson2-es5-compat.js216 '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
440 ('0000' + a.charCodeAt(0).toString(16)).slice(-4);

1234