/external/chromium_org/v8/test/webkit/ |
char-at-expected.txt | 24 This is a test of the charAt and charCodeAt string functions. 29 PASS "".charAt() is "" 31 PASS "".charAt(undefined) is "" 33 PASS "".charAt(0) is "" 35 PASS "".charAt(null) is "" 37 PASS "".charAt(false) is "" 39 PASS "".charAt(true) is "" 41 PASS "".charAt(0) is "" 43 PASS "".charAt(0.1) is "" 45 PASS "".charAt(999) is " [all...] |
/cts/tests/tests/util/src/android/util/cts/ |
StringBuilderPrinterTest.java | 31 assertEquals(' ', str.charAt(5)); 32 assertEquals('A', str.charAt(6)); 33 assertEquals('n', str.charAt(7)); 34 assertEquals('d', str.charAt(8)); 35 assertEquals('r', str.charAt(9)); 36 assertEquals('o', str.charAt(10)); 37 assertEquals('i', str.charAt(11)); 38 assertEquals('d', str.charAt(12));
|
/external/chromium_org/v8/test/mjsunit/ |
string-charat.js | 38 assertEquals("t", s().charAt()); 39 assertEquals("t", s().charAt("string")); 40 assertEquals("t", s().charAt(null)); 41 assertEquals("t", s().charAt(void 0)); 42 assertEquals("t", s().charAt(false)); 43 assertEquals("e", s().charAt(true)); 44 assertEquals("", s().charAt(-1)); 45 assertEquals("", s().charAt(len)); 46 assertEquals("", s().charAt(slowIndexOutOfRange)); 47 assertEquals("", s().charAt(1/0)) [all...] |
string-slices.js | 80 assertEquals(x.charAt(i+k), z.charAt(k)); 96 assertEquals(x.charAt(i+k), z.charAt(k)); 138 assertEquals(x.charAt(i*(i+1)/2), z.charAt(0)); 142 // Test charAt for different strings. 144 assertEquals(String.fromCharCode(97+i%11), s1.charAt(i%11)); 145 assertEquals(String.fromCharCode(97+i%11), s2.charAt(i%11)); 146 assertEquals(String.fromCharCode(98+i%11), s3.charAt(i%11)) [all...] |
regexp-string-methods.js | 35 // Regexp shouldn't use String.prototype.charAt() 38 assertEquals("f", "foo".charAt(0)); 39 String.prototype.charAt = function(idx) { return 'g'; }; 40 assertEquals("g", "foo".charAt(0));
|
/external/v8/test/mjsunit/ |
string-charat.js | 38 assertEquals("t", s().charAt()); 39 assertEquals("t", s().charAt("string")); 40 assertEquals("t", s().charAt(null)); 41 assertEquals("t", s().charAt(void 0)); 42 assertEquals("t", s().charAt(false)); 43 assertEquals("e", s().charAt(true)); 44 assertEquals("", s().charAt(-1)); 45 assertEquals("", s().charAt(len)); 46 assertEquals("", s().charAt(slowIndexOutOfRange)); 47 assertEquals("", s().charAt(1/0)) [all...] |
string-slices.js | 80 assertEquals(x.charAt(i+k), z.charAt(k)); 96 assertEquals(x.charAt(i+k), z.charAt(k)); 138 assertEquals(x.charAt(i*(i+1)/2), z.charAt(0)); 142 // Test charAt for different strings. 144 assertEquals(String.fromCharCode(97+i%11), s1.charAt(i%11)); 145 assertEquals(String.fromCharCode(97+i%11), s2.charAt(i%11)); 146 assertEquals(String.fromCharCode(98+i%11), s3.charAt(i%11)) [all...] |
/frameworks/base/core/java/com/android/internal/http/ |
HttpDateTime.java | 126 return (dateString.charAt(0) - '0') * 10 127 + (dateString.charAt(1) - '0'); 129 return (dateString.charAt(0) - '0'); 148 int hash = Character.toLowerCase(monthString.charAt(0)) + 149 Character.toLowerCase(monthString.charAt(1)) + 150 Character.toLowerCase(monthString.charAt(2)) - 3 * 'a'; 183 int year = (yearString.charAt(0) - '0') * 10 184 + (yearString.charAt(1) - '0'); 192 int year = (yearString.charAt(0) - '0') * 100 193 + (yearString.charAt(1) - '0') * 1 [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
ATResponseParser.java | 49 char c = mLine.charAt(mTokStart); 67 char c = mLine.charAt(i); 111 char c = mLine.charAt(mNext++); 120 c = mLine.charAt(mNext++); 123 c = mLine.charAt(mNext++); 129 if (mNext < len && mLine.charAt(mNext++) != ',') { 142 c = mLine.charAt(mNext++); 158 c = mLine.charAt(mNext++); 176 char c = mLine.charAt(mNext++);
|
/frameworks/base/core/java/android/text/util/ |
Rfc822Tokenizer.java | 54 char c = text.charAt(i); 59 while (i < cursor && text.charAt(i) == ' ') { 82 c = text.charAt(i); 89 name.append(text.charAt(i + 1)); 102 c = text.charAt(i); 117 comment.append(text.charAt(i + 1)); 129 c = text.charAt(i); 182 char c = sb.charAt(i); 186 sb.charAt(i - 1) == ' ' || 187 sb.charAt(i - 1) == '\0' | [all...] |
/art/test/022-interface/classes/ |
Main$SubInterfaceImpl.class | |
Main$1.class | |
/cts/tests/tests/widget/src/android/widget/cts/ |
AlphabetIndexerTest.java | 50 assertEquals(ALPHABET.charAt(0), ((String[]) sections)[0].charAt(0)); 51 assertEquals(ALPHABET.charAt(1), ((String[]) sections)[1].charAt(0)); 52 assertEquals(ALPHABET.charAt(ALPHABET.length() - 2), 53 ((String[]) sections)[ALPHABET.length() - 2].charAt(0)); 54 assertEquals(ALPHABET.charAt(ALPHABET.length() - 1), 55 ((String[]) sections)[ALPHABET.length() - 1].charAt(0));
|
/art/test/021-string2/src/junit/framework/ |
ComparisonFailure.java | 38 if (fExpected.charAt(i) != fActual.charAt(i)) 44 if (fExpected.charAt(j) != fActual.charAt(k))
|
/art/test/082-inline-execute/src/junit/framework/ |
ComparisonFailure.java | 38 if (fExpected.charAt(i) != fActual.charAt(i)) 44 if (fExpected.charAt(j) != fActual.charAt(k))
|
/dalvik/tests/021-string2/src/junit/framework/ |
ComparisonFailure.java | 38 if (fExpected.charAt(i) != fActual.charAt(i)) 44 if (fExpected.charAt(j) != fActual.charAt(k))
|
/dalvik/tests/082-inline-execute/src/junit/framework/ |
ComparisonFailure.java | 38 if (fExpected.charAt(i) != fActual.charAt(i)) 44 if (fExpected.charAt(j) != fActual.charAt(k))
|
/external/jdiff/src/jdiff/ |
API.java | 296 if (sb.charAt(i) == '<') { 299 } else if (sb.charAt(i) == '&') { 302 } else if (sb.charAt(i) == '"') { 322 char c = sb.charAt(i); 324 sb.charAt(i+1) == 'E' && 325 sb.charAt(i+2) == 's' && 326 sb.charAt(i+3) == 'S' && 327 sb.charAt(i+4) == '_' && 328 sb.charAt(i+5) == 't' && 329 sb.charAt(i+6) == 'H' & [all...] |
/frameworks/base/core/java/android/os/ |
PatternMatcher.java | 125 char nextChar = pattern.charAt(0); 129 nextChar = ip < NP ? pattern.charAt(ip) : 0; 134 nextChar = ip < NP ? pattern.charAt(ip) : 0; 144 nextChar = pattern.charAt(ip); 149 nextChar = ip < NP ? pattern.charAt(ip) : 0; 152 if (match.charAt(im) == nextChar) { 163 nextChar = ip < NP ? pattern.charAt(ip) : 0; 168 if (match.charAt(im) != c) { 174 nextChar = ip < NP ? pattern.charAt(ip) : 0; 177 if (c != '.' && match.charAt(im) != c) return false [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x500/style/ |
IETFUtils.java | 102 while (buf.charAt(buf.length() - 1) == ' ' && lastEscaped != (buf.length() - 1)) 268 else if (name.charAt(0) >= '0' && name.charAt(0) <= '9') 290 char left = str.charAt((index * 2) + off); 291 char right = str.charAt((index * 2) + off + 1); 357 if (v.length() > 0 && v.charAt(0) == '#') 381 if (vBuf.length() >= 2 && vBuf.charAt(0) == '\\' && vBuf.charAt(1) == '#') 388 if ((vBuf.charAt(index) == ',') 389 || (vBuf.charAt(index) == '"' [all...] |
/frameworks/base/wifi/java/android/net/wifi/ |
WifiSsid.java | 86 char c = asciiEncoded.charAt(i); 90 switch(asciiEncoded.charAt(i)) { 123 val = Character.digit(asciiEncoded.charAt(i), HEX_RADIX); 140 val = asciiEncoded.charAt(i) - '0'; 142 if (asciiEncoded.charAt(i) >= '0' && asciiEncoded.charAt(i) <= '7') { 143 val = val * 8 + asciiEncoded.charAt(i) - '0'; 146 if (asciiEncoded.charAt(i) >= '0' && asciiEncoded.charAt(i) <= '7') { 147 val = val * 8 + asciiEncoded.charAt(i) - '0' [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
CharSequences.java | 32 public char charAt(int index) { 65 public char charAt(int index) { 103 if (a.charAt(i) != b.charAt(i)) { 124 if ((result = Character.toLowerCase(me.charAt(myPos++)) 125 - Character.toLowerCase(another.charAt(anotherPos++))) != 0) {
|
/art/test/022-interface/src/ |
Main.java | 61 public char charAt(int i) { 62 return toString().charAt(i); 78 public char charAt(int i) {
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/h264/ |
BTree.java | 45 char charAt = path.charAt(0); 47 if (charAt == '0') {
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowTextUtils.java | 34 while (start < len && s.charAt(start) <= ' ') { 39 while (end > start && s.charAt(end - 1) <= ' ') { 60 if (!Character.isDigit(str.charAt(i))) {
|