HomeSort by relevance Sort by last modified time
    Searched refs:charAt (Results 1 - 25 of 958) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/String/
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...]
  /libcore/luni/src/main/java/java/lang/
CharSequence.java 45 public char charAt(int index);
  /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...]
  /cts/tests/tests/util/src/android/util/cts/
StringBuilderPrinterTest.java 50 assertEquals(' ', str.charAt(5));
51 assertEquals('A', str.charAt(6));
52 assertEquals('n', str.charAt(7));
53 assertEquals('d', str.charAt(8));
54 assertEquals('r', str.charAt(9));
55 assertEquals('o', str.charAt(10));
56 assertEquals('i', str.charAt(11));
57 assertEquals('d', str.charAt(12));
  /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/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...]
  /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/webkit/Source/JavaScriptCore/tests/mozilla/ecma_3/Unicode/
uc-005.js 125 expect = s1.charAt(0);
130 expect = s2.charAt(0);
135 expect = s3.charAt(0);
140 expect = s4.charAt(0);
145 expect = s5.charAt(0);
150 expect = s6.charAt(0);
155 expect = s7.charAt(0);
160 expect = s8.charAt(0);
165 expect = s9.charAt(0);
170 expect = s10.charAt(0)
    [all...]
  /libcore/luni/src/test/java/libcore/java/lang/
StringIndexOutOfBoundsExceptionTest.java 24 "hello".charAt(-1);
31 "hello".charAt(7);
  /packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
CandidateFilter.java 48 if (str.charAt(i) < 0x20 || 0x7E < str.charAt(i)) {
  /libcore/luni/src/main/java/java/util/
StringTokenizer.java 113 if (delimiters.indexOf(string.charAt(i), 0) >= 0) {
156 if (delimiters.indexOf(string.charAt(i), 0) == -1)
190 if (delimiters.indexOf(string.charAt(position), 0) >= 0)
191 return String.valueOf(string.charAt(position++));
193 if (delimiters.indexOf(string.charAt(position), 0) >= 0)
198 while (i < length && delimiters.indexOf(string.charAt(i), 0) >= 0)
203 if (delimiters.indexOf(string.charAt(position), 0) >= 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...]
  /external/nist-sip/java/gov/nist/javax/sip/header/
StatusLine.java 83 if (codeString.charAt(0) != mycode.charAt(0))
174 if (sipVersion.charAt(i) == '.')
178 major = "" + sipVersion.charAt(i);
180 major += sipVersion.charAt(i);
182 if (sipVersion.charAt(i) == '/')
199 minor = "" + sipVersion.charAt(i);
201 minor += sipVersion.charAt(i);
203 if (sipVersion.charAt(i) == '.')
  /development/apps/CustomLocale/src/com/android/customlocale2/
CustomLocaleReceiver.java 63 is_ok = Character.isLetter(locale.charAt(0)) &&
64 Character.isLetter(locale.charAt(1));
67 is_ok = locale.charAt(2) == '_' &&
68 Character.isLetter(locale.charAt(3)) &&
69 Character.isLetter(locale.charAt(4));
  /external/nist-sip/java/gov/nist/javax/sip/address/
RFC2396UrlDecoder.java 58 if (uri.charAt(i) == '%') {
61 while (i < length && uri.charAt(i) == '%') {
85 translatedUri.append(uri.charAt(i));
  /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/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/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...]
  /frameworks/ex/common/java/com/android/common/
Rfc822InputFilter.java 37 if (end-start != 1 || source.charAt(start) != ' ') {
46 char c = dest.charAt(--scanBack);
  /libcore/luni/src/test/java/tests/api/java/lang/
StringTest.java 31 assertTrue("abcd".charAt(0) == 'a');
32 assertTrue("abcd".charAt(3) == 'd');
  /libcore/luni/src/test/java/tests/java/lang/String/
Tests.java 31 assertTrue("abcd".charAt(0) == 'a');
32 assertTrue("abcd".charAt(3) == 'd');
  /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...]
  /external/apache-xml/src/main/java/org/apache/xpath/objects/
XStringForFSB.java 226 public char charAt(int index)
228 return fsb().charAt(m_start + index);
271 dst[d++] = fsb.charAt(i);
307 if (fsb.charAt(i) != obj2.charAt(j))
352 if (fsb.charAt(i) != str.charAt(j))
389 if (fsb.charAt(i) != anotherString.charAt(j))
484 char c1 = fsb.charAt(i)
    [all...]
  /dalvik/dx/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))

Completed in 922 milliseconds

1 2 3 4 5 6 7 8 91011>>