/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/String/ |
15.5.4.4-4.js | 24 ECMA Section: 15.5.4.4 String.prototype.charAt(pos) 30 When the charAt method is called with one argument, 40 Note that the charAt function is intentionally generic; 45 This tests assiging charAt to primitive types.. 53 var TITLE = "String.prototype.charAt"; 64 array[item++] = new TestCase( SECTION, "x = null; x.__proto.charAt = String.prototype.charAt; x.charAt(0)", "n", eval("x=null; x.__proto__.charAt = String.prototype.charAt; x.charAt(0)") ) [all...] |
15.5.4.4-2.js | 24 ECMA Section: 15.5.4.4 String.prototype.charAt(pos) 30 When the charAt method is called with one argument, 40 Note that the charAt function is intentionally generic; 51 var TITLE = "String.prototype.charAt"; 61 array[item++] = new TestCase( SECTION, "x = new Boolean(true); x.charAt=String.prototype.charAt;x.charAt(0)", "t", eval("x = new Boolean(true); x.charAt=String.prototype.charAt;x.charAt(0)") ) [all...] |
15.5.4.4-3.js | 24 ECMA Section: 15.5.4.4 String.prototype.charAt(pos) 30 When the charAt method is called with one argument, 40 Note that the charAt function is intentionally generic; 45 This tests assiging charAt to a user-defined function. 53 var TITLE = "String.prototype.charAt"; 64 this.charAt = String.prototype.charAt; 73 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello'); ", "h", foo.charAt(0) ); 74 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello'); ", "e", foo.charAt(1) ); 75 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello'); ", "l", foo.charAt(2) ) [all...] |
15.5.4.4-1.js | 24 ECMA Section: 15.5.4.4 String.prototype.charAt(pos) 30 When the charAt method is called with one argument, 44 var TITLE = "String.prototype.charAt"; 59 "TEST_STRING.charAt("+item+")", 61 TEST_STRING.charAt( item ) ); 65 "TEST_STRING.charAt("+item+") == TEST_STRING.substring( "+item +", "+ (item+1) + ")", 67 TEST_STRING.charAt( item ) == TEST_STRING.substring( item, item+1 ) 70 array[item++] = new TestCase( SECTION, "String.prototype.charAt.length", 1, String.prototype.charAt.length );
|
/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/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/bouncycastle/src/main/java/org/bouncycastle/asn1/x500/style/ |
IETFUtils.java | 107 else if (name.charAt(0) >= '0' && name.charAt(0) <= '9') 130 char left = str.charAt((index * 2) + off); 131 char right = str.charAt((index * 2) + off + 1); 182 if (v.length() > 0 && v.charAt(0) == '#') 199 if (vBuf.length() >= 2 && vBuf.charAt(0) == '\\' && vBuf.charAt(1) == '#') 206 if ((vBuf.charAt(index) == ',') 207 || (vBuf.charAt(index) == '"') 208 || (vBuf.charAt(index) == '\\' [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/base/telephony/java/com/android/internal/telephony/ |
ATResponseParser.java | 49 char c = line.charAt(tokStart); 67 char c = line.charAt(i); 111 char c = line.charAt(next++); 120 c = line.charAt(next++); 123 c = line.charAt(next++); 129 if (next < len && line.charAt(next++) != ',') { 142 c = line.charAt(next++); 158 c = line.charAt(next++); 176 char c = line.charAt(next++);
|
/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...] |
/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));
|
/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/junit/src/junit/framework/ |
ComparisonCompactor.java | 49 if (fExpected.charAt(fPrefix) != fActual.charAt(fPrefix)) 58 if (fExpected.charAt(expectedSuffix) != fActual.charAt(actualSuffix))
|
/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...] |
/sdk/lint/libs/lint_checks/src/com/android/tools/lint/checks/ |
Utf8Detector.java | 71 char c = xml.charAt(lineEnd); 78 if ((xml.charAt(i) == 'u' || xml.charAt(i) == 'U') 79 && (xml.charAt(i + 1) == 't' || xml.charAt(i + 1) == 'T') 80 && (xml.charAt(i + 2) == 'f' || xml.charAt(i + 2) == 'F') 81 && (xml.charAt(i + 3) == '-' || xml.charAt(i + 3) == '_') 82 && (xml.charAt(i + 4) == '8')) [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) {
|
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/x509/ |
X509NameTokenizer.java | 51 char c = value.charAt(end); 63 if (c == '#' && buf.charAt(buf.length() - 1) == '=') 80 if (c == '#' && buf.charAt(buf.length() - 1) == '=')
|
/external/jmonkeyengine/engine/src/core/com/jme3/font/ |
ColorTags.java | 80 color.set(Integer.parseInt(Character.toString(colorStr.charAt(0)), 16) / 15f,
81 Integer.parseInt(Character.toString(colorStr.charAt(1)), 16) / 15f,
82 Integer.parseInt(Character.toString(colorStr.charAt(2)), 16) / 15f,
85 color.a = Integer.parseInt(Character.toString(colorStr.charAt(3)), 16) / 15f;
|
/external/jsr305/sampleUses/src/main/java/ |
LuhnVerification.java | 7 int v = value.charAt(i) - '0';
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/internal/util/ |
XmlUtils_Delegate.java | 47 if ('-' == nm.charAt(0)) { 52 if ('0' == nm.charAt(index)) { 57 char c = nm.charAt(index + 1); 67 else if ('#' == nm.charAt(index)) {
|
/external/apache-http/src/org/apache/commons/codec/language/ |
DoubleMetaphone.java | 97 switch (value.charAt(index)) { 108 index = charAt(value, index + 1) == 'B' ? index + 2 : index + 1; 123 index = charAt(value, index + 1) == 'F' ? index + 2 : index + 1; 136 index = charAt(value, index + 1) == 'K' ? index + 2 : index + 1; 147 index = charAt(value, index + 1) == 'N' ? index + 2 : index + 1; 159 index = charAt(value, index + 1) == 'Q' ? index + 2 : index + 1; 172 index = charAt(value, index + 1) == 'V' ? index + 2 : index + 1; 301 !(index == 1 && charAt(value, 0) == 'M')) { 340 if ((index == 1 && charAt(value, index - 1) == 'A') || 421 if (charAt(value, index + 1) == 'H') [all...] |