Home
last modified time | relevance | path

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

123456

/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.js32 var A_CODE = "A".charCodeAt(0);
33 var Z_CODE = "Z".charCodeAt(0);
34 var a_CODE = "a".charCodeAt(0);
35 var z_CODE = "z".charCodeAt(0);
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);
/external/chromium_org/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.js32 var A_CODE = "A".charCodeAt(0);
33 var Z_CODE = "Z".charCodeAt(0);
34 var a_CODE = "a".charCodeAt(0);
35 var z_CODE = "z".charCodeAt(0);
Dconstant-folding-2.js221 assertEquals(99, "abc".charCodeAt(2));
222 assertEquals("NaN", String("abc".charCodeAt(-1)));
223 assertEquals("NaN", String("abc".charCodeAt(4)));
224 assertEquals(98, "abc".charCodeAt(1.1));
225 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));
/external/chromium_org/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 …]
/external/chromium_org/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 …]
/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 …]
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/
Dstring-base64.js51 result += toBase64Table[data.charCodeAt(i) >> 2];
52 result += toBase64Table[((data.charCodeAt(i) & 0x03) << 4) + (data.charCodeAt(i+1) >> 4)];
53 result += toBase64Table[((data.charCodeAt(i+1) & 0x0f) << 2) + (data.charCodeAt(i+2) >> 6)];
54 result += toBase64Table[data.charCodeAt(i+2) & 0x3f];
60 result += toBase64Table[data.charCodeAt(i) >> 2];
62 … result += toBase64Table[((data.charCodeAt(i) & 0x03) << 4) + (data.charCodeAt(i+1) >> 4)];
63 result += toBase64Table[(data.charCodeAt(i+1) & 0x0f) << 2];
66 result += toBase64Table[(data.charCodeAt(i) & 0x03) << 4];
93 var c = toBinaryTable[data.charCodeAt(i) & 0x7f];
94 var padding = (data.charCodeAt(i) == base64Pad.charCodeAt(0));
Dcrypto-aes.js171 for (var i=0; i<nBytes; i++) pwBytes[i] = password.charCodeAt(i) & 0xff;
204 var plaintextByte = plaintext.charCodeAt(b*blockSize+i);
235 for (var i=0; i<nBytes; i++) pwBytes[i] = password.charCodeAt(i) & 0xff;
248 for (var i=0; i<8; i++) counterBlock[i] = ctrTxt.charCodeAt(i);
264 var ciphertextByte = ciphertext[b].charCodeAt(i);
279 …return str.replace(/[\0\t\n\v\f\r\xa0'"!-]/g, function(c) { return '!' + c.charCodeAt(0) + '!'; });
298 o1 = str.charCodeAt(i++);
299 o2 = str.charCodeAt(i++);
300 o3 = str.charCodeAt(i++);
347 var cc = c.charCodeAt(0);
[all …]
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-1.0/
Dstring-base64.js51 result += toBase64Table[data.charCodeAt(i) >> 2];
52 result += toBase64Table[((data.charCodeAt(i) & 0x03) << 4) + (data.charCodeAt(i+1) >> 4)];
53 result += toBase64Table[((data.charCodeAt(i+1) & 0x0f) << 2) + (data.charCodeAt(i+2) >> 6)];
54 result += toBase64Table[data.charCodeAt(i+2) & 0x3f];
60 result += toBase64Table[data.charCodeAt(i) >> 2];
62 … result += toBase64Table[((data.charCodeAt(i) & 0x03) << 4) + (data.charCodeAt(i+1) >> 4)];
63 result += toBase64Table[(data.charCodeAt(i+1) & 0x0f) << 2];
66 result += toBase64Table[(data.charCodeAt(i) & 0x03) << 4];
93 var c = toBinaryTable[data.charCodeAt(i) & 0x7f];
94 var padding = (data.charCodeAt(i) == base64Pad.charCodeAt(0));
Dcrypto-aes.js171 for (var i=0; i<nBytes; i++) pwBytes[i] = password.charCodeAt(i) & 0xff;
204 var plaintextByte = plaintext.charCodeAt(b*blockSize+i);
235 for (var i=0; i<nBytes; i++) pwBytes[i] = password.charCodeAt(i) & 0xff;
248 for (var i=0; i<8; i++) counterBlock[i] = ctrTxt.charCodeAt(i);
264 var ciphertextByte = ciphertext[b].charCodeAt(i);
279 …return str.replace(/[\0\t\n\v\f\r\xa0'"!-]/g, function(c) { return '!' + c.charCodeAt(0) + '!'; });
298 o1 = str.charCodeAt(i++);
299 o2 = str.charCodeAt(i++);
300 o3 = str.charCodeAt(i++);
347 var cc = c.charCodeAt(0);
[all …]
/external/chromium_org/v8/src/
Duri.js188 var cc1 = uri.charCodeAt(k);
198 var cc2 = uri.charCodeAt(k);
222 var code = uri.charCodeAt(k);
225 var cc = URIHexCharsToCharCode(uri.charCodeAt(k+1), uri.charCodeAt(k+2));
229 %_OneByteSeqStringSetChar(one_byte, index++, uri.charCodeAt(k+1));
230 %_OneByteSeqStringSetChar(one_byte, index++, uri.charCodeAt(k+2));
249 var code = uri.charCodeAt(k);
252 var cc = URIHexCharsToCharCode(uri.charCodeAt(++k), uri.charCodeAt(++k));
262 octets[i] = URIHexCharsToCharCode(uri.charCodeAt(++k),
263 uri.charCodeAt(++k));
[all …]
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9/
Dcrypto-aes.js171 for (var i=0; i<nBytes; i++) pwBytes[i] = password.charCodeAt(i) & 0xff;
204 var plaintextByte = plaintext.charCodeAt(b*blockSize+i);
235 for (var i=0; i<nBytes; i++) pwBytes[i] = password.charCodeAt(i) & 0xff;
248 for (var i=0; i<8; i++) counterBlock[i] = ctrTxt.charCodeAt(i);
264 var ciphertextByte = ciphertext[b].charCodeAt(i);
279 …return str.replace(/[\0\t\n\v\f\r\xa0'"!-]/g, function(c) { return '!' + c.charCodeAt(0) + '!'; });
298 o1 = str.charCodeAt(i++);
299 o2 = str.charCodeAt(i++);
300 o3 = str.charCodeAt(i++);
347 var cc = c.charCodeAt(0);
[all …]
/external/v8/src/
Duri.js187 var cc1 = uri.charCodeAt(k);
197 var cc2 = uri.charCodeAt(k);
219 var cc = URIHexCharsToCharCode(uri.charCodeAt(++k), uri.charCodeAt(++k));
229 octets[i] = URIHexCharsToCharCode(uri.charCodeAt(++k),
230 uri.charCodeAt(++k));
236 result[index++] = uri.charCodeAt(k - 1);
237 result[index++] = uri.charCodeAt(k);
243 result[index++] = ch.charCodeAt(0);
381 var cc = s.charCodeAt(i);
/external/chromium_org/chrome/browser/resources/extensions/
Dextension_command_list.js69 (keyCode >= 'A'.charCodeAt(0) && keyCode <= 'Z'.charCodeAt(0)) ||
70 (keyCode >= '0'.charCodeAt(0) && keyCode <= '9'.charCodeAt(0));
92 if ((keyCode >= 'A'.charCodeAt(0) && keyCode <= 'Z'.charCodeAt(0)) ||
93 (keyCode >= '0'.charCodeAt(0) && keyCode <= '9'.charCodeAt(0))) {
94 output += String.fromCharCode('A'.charCodeAt(0) + keyCode - 65);
/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_org/third_party/WebKit/Source/devtools/front_end/
DHeapSnapshotLoader.js73 … var char0 = "0".charCodeAt(0), char9 = "9".charCodeAt(0), closingBracket = "]".charCodeAt(0);
77 var code = this._json.charCodeAt(index);
93 var code = this._json.charCodeAt(index);

123456