Home
last modified time | relevance | path

Searched refs:charAt (Results 1 – 25 of 635) sorted by relevance

12345678910>>...26

/external/v8/test/mjsunit/
Dstring-charat.js38 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 …]
Dstring-slices.js80 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));
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));
147 assertEquals(String.fromCharCode(101), s3.charAt(3));
214 assertEquals(b.charAt(i), a.charAt(i + 1));
215 assertEquals(b.charAt(i), c.charAt(i));
216 assertEquals(b.charAt(4), c.charAt(4));
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/String/
D15.5.4.4-3.js64 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) );
76 … array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello'); ", "l", foo.charAt(3) );
77 … array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello'); ", "o", foo.charAt(4) );
78 …array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello'); ", "", foo.charAt(-1) );
79 … array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello'); ", "", foo.charAt(5) );
83 array[item++] = new TestCase( SECTION, "var boo = new MyObject(true); ", "t", boo.charAt(0) );
84 array[item++] = new TestCase( SECTION, "var boo = new MyObject(true); ", "r", boo.charAt(1) );
[all …]
/external/jdiff/src/jdiff/
DAPI.java296 if (sb.charAt(i) == '<') { in hideHTMLTags()
299 } else if (sb.charAt(i) == '&') { in hideHTMLTags()
302 } else if (sb.charAt(i) == '"') { in hideHTMLTags()
322 char c = sb.charAt(i); in showHTMLTags()
324 sb.charAt(i+1) == 'E' && in showHTMLTags()
325 sb.charAt(i+2) == 's' && in showHTMLTags()
326 sb.charAt(i+3) == 'S' && in showHTMLTags()
327 sb.charAt(i+4) == '_' && in showHTMLTags()
328 sb.charAt(i+5) == 't' && in showHTMLTags()
329 sb.charAt(i+6) == 'H' && in showHTMLTags()
[all …]
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_3/Unicode/
Duc-005.js125 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 …]
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
DUtils.java75 switch (value.charAt(i)) in normalizeLangValue()
90 buffer.append(Character.toLowerCase(value.charAt(i))); in normalizeLangValue()
94 buffer.append(Character.toUpperCase(value.charAt(i))); in normalizeLangValue()
126 if (selector.charAt(pos) == '?') in splitNameAndValue()
134 char quote = selector.charAt(pos); in splitNameAndValue()
140 value.append(selector.charAt(pos)); in splitNameAndValue()
142 if (selector.charAt(pos) == quote) in splitNameAndValue()
285 if (uuid.charAt(delimPos) == '-') in checkUUIDFormat()
308 if (name.length() > 0 && !isNameStartChar(name.charAt(0))) in isXMLName()
314 if (!isNameChar(name.charAt(i))) in isXMLName()
[all …]
/external/apache-http/src/org/apache/commons/codec/language/
DDoubleMetaphone.java97 switch (value.charAt(index)) { in doubleMetaphone()
108 index = charAt(value, index + 1) == 'B' ? index + 2 : index + 1; in doubleMetaphone()
123 index = charAt(value, index + 1) == 'F' ? index + 2 : index + 1; in doubleMetaphone()
136 index = charAt(value, index + 1) == 'K' ? index + 2 : index + 1; in doubleMetaphone()
147 index = charAt(value, index + 1) == 'N' ? index + 2 : index + 1; in doubleMetaphone()
159 index = charAt(value, index + 1) == 'Q' ? index + 2 : index + 1; in doubleMetaphone()
172 index = charAt(value, index + 1) == 'V' ? index + 2 : index + 1; in doubleMetaphone()
301 !(index == 1 && charAt(value, 0) == 'M')) { in handleC()
340 if ((index == 1 && charAt(value, index - 1) == 'A') || in handleCC()
421 if (charAt(value, index + 1) == 'H') { in handleG()
[all …]
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/xpath/
DXMPPathParser.java110 if (path.charAt(pos.stepBegin) != '[') in expandXPath()
124 if (segment.getName().charAt(0) == '@') in expandXPath()
133 if (segment.getName().charAt(0) == '?') in expandXPath()
143 if (segment.getName().charAt(1) == '@') in expandXPath()
153 if (segment.getName().charAt(1) == '?') in expandXPath()
174 if (path.charAt(pos.stepBegin) == '/') in skipPathDelimiter()
187 if (path.charAt(pos.stepBegin) == '*') in skipPathDelimiter()
192 if (pos.stepBegin >= path.length() || path.charAt(pos.stepBegin) != '[') in skipPathDelimiter()
209 while (pos.stepEnd < pos.path.length() && "/[*".indexOf(pos.path.charAt(pos.stepEnd)) < 0) in parseStructSegment()
240 if ('0' <= pos.path.charAt(pos.stepEnd) && pos.path.charAt(pos.stepEnd) <= '9') in parseIndexSegment()
[all …]
/external/apache-xml/src/main/java/org/apache/xpath/objects/
DXStringForFSB.java226 public char charAt(int index) in charAt() method in XStringForFSB
228 return fsb().charAt(m_start + index); in charAt()
271 dst[d++] = fsb.charAt(i); in getChars()
307 if (fsb.charAt(i) != obj2.charAt(j)) in equals()
352 if (fsb.charAt(i) != str.charAt(j)) in equals()
389 if (fsb.charAt(i) != anotherString.charAt(j)) in equals()
484 char c1 = fsb.charAt(i); in compareTo()
485 char c2 = xstr.charAt(j); in compareTo()
530 char c1 = Character.toLowerCase(fsb.charAt(i)); in compareToIgnoreCase()
531 char c2 = Character.toLowerCase(xstr.charAt(j)); in compareToIgnoreCase()
[all …]
/external/javassist/src/main/javassist/bytecode/
DDescriptor.java73 char c = descriptor.charAt(0); in toClassName()
76 c = descriptor.charAt(++i); in toClassName()
169 && desc.charAt(j + oldname.length() + 1) == ';') { in rename()
353 if (desc.charAt(0) != '(') in insertParameter()
391 if (descriptor.charAt(0) != '(') in insertParameter()
430 if (desc.charAt(0) != '(') in getParameterTypes()
450 if (desc1.charAt(0) != '(') in eqParamTypes()
454 char c = desc1.charAt(i); in eqParamTypes()
455 if (c != desc2.charAt(i)) in eqParamTypes()
503 char c = desc.charAt(i); in numOfParameters()
[all …]
/external/jsilver/src/com/google/clearsilver/jsilver/data/
DNewHdfParser.java216 if (charAt(seq, 0) == '#') { in parseCommand()
224 } else if (charAt(seq, 0) == '}') { in parseCommand()
238 if (charAt(seq, start) == '"') { in parseInclude()
239 if (charAt(seq, end - 1) == '"') { in parseInclude()
261 switch (charAt(seq, index)) { in parseHdfElement()
277 if (charAt(seq, index + 1) == '=') { in parseHdfElement()
306 if (charAt(seq, index + 1) != '<') { in parseHdfElement()
352 while (end < seq.length() && isHdfNameChar(charAt(seq, end))) { in parseHdfName()
366 if (charAt(seq, index) != '[') { in parseAttributes()
374 while (charAt(seq, index) != ']') { in parseAttributes()
[all …]
/external/nist-sip/java/gov/nist/javax/sip/header/
DStatusLine.java83 if (codeString.charAt(0) != mycode.charAt(0)) in match()
174 if (sipVersion.charAt(i) == '.') in getVersionMajor()
178 major = "" + sipVersion.charAt(i); in getVersionMajor()
180 major += sipVersion.charAt(i); in getVersionMajor()
182 if (sipVersion.charAt(i) == '/') in getVersionMajor()
199 minor = "" + sipVersion.charAt(i); in getVersionMinor()
201 minor += sipVersion.charAt(i); in getVersionMinor()
203 if (sipVersion.charAt(i) == '.') in getVersionMinor()
DRequestLine.java149 if (sipVersion.charAt(i) == '.') in getVersionMajor()
153 major = "" + sipVersion.charAt(i); in getVersionMajor()
155 major += sipVersion.charAt(i); in getVersionMajor()
157 if (sipVersion.charAt(i) == '/') in getVersionMajor()
174 minor = "" + sipVersion.charAt(i); in getVersionMinor()
176 minor += sipVersion.charAt(i); in getVersionMinor()
178 if (sipVersion.charAt(i) == '.') in getVersionMinor()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x500/style/
DIETFUtils.java107 else if (name.charAt(0) >= '0' && name.charAt(0) <= '9') in decodeAttrName()
130 char left = str.charAt((index * 2) + off); in valueFromHexString()
131 char right = str.charAt((index * 2) + off + 1); in valueFromHexString()
212 if (v.length() > 0 && v.charAt(0) == '#') in valueToString()
236 if (vBuf.length() >= 2 && vBuf.charAt(0) == '\\' && vBuf.charAt(1) == '#') in valueToString()
243 if ((vBuf.charAt(index) == ',') in valueToString()
244 || (vBuf.charAt(index) == '"') in valueToString()
245 || (vBuf.charAt(index) == '\\') in valueToString()
246 || (vBuf.charAt(index) == '+') in valueToString()
247 || (vBuf.charAt(index) == '=') in valueToString()
[all …]
/external/webkit/Source/WebCore/inspector/front-end/
DColor.js46 …if (hex.charAt(0) === hex.charAt(1) && hex.charAt(2) === hex.charAt(3) && hex.charAt(4) === hex.ch…
47 this._short = hex.charAt(0) + hex.charAt(2) + hex.charAt(4);
310 …this.hex = hex.charAt(0) + hex.charAt(0) + hex.charAt(1) + hex.charAt(1) + hex.charAt(2) + hex.cha…
/external/icu4c/common/
Dmessagepattern.cpp452 UChar c=msg.charAt(index++); in parseMessage()
461 c=msg.charAt(index); in parseMessage()
477 if(/*(index+1)<msg.length() &&*/ msg.charAt(index+1)==u_apos) { in parseMessage()
583 UChar c=msg.charAt(index); in parseArg()
593 while(index<msg.length() && isArgTypeChar(msg.charAt(index))) { in parseArg()
603 if(length==0 || ((c=msg.charAt(index))!=u_comma && c!=u_rightCurlyBrace)) { in parseArg()
664 UChar c=msg.charAt(index++); in parseSimpleStyle()
707 if(index==msg.length() || msg.charAt(index)==u_rightCurlyBrace) { in parseChoiceStyle()
739 UChar c=msg.charAt(index); in parseChoiceStyle()
755 if(msg.charAt(index)==u_rightCurlyBrace) { in parseChoiceStyle()
[all …]
Dutil_props.cpp32 if (p < limit && rule.charAt(p) == 48 /*0*/) { in parseInteger()
33 if (p+1 < limit && (rule.charAt(p+1) == 0x78 /*x*/ || rule.charAt(p+1) == 0x58 /*X*/)) { in parseInteger()
45 int32_t d = u_digit(rule.charAt(p++), radix); in parseInteger()
92 UChar cpat = pattern.charAt(i); in parsePattern()
99 c = rule.charAt(pos++); in parsePattern()
120 c = (UChar) u_tolower(rule.charAt(pos++)); in parsePattern()
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Expressions/
D11.10-3.js183 if ( Number(bin.charAt(0)) == 0 ) {
192 r += Math.pow( 2, j ) * Number(bin.charAt(31-j));
205 r += Math.pow( 2, j ) * Number(bin.charAt(31-j));
221 if ( bs.charAt(bit) == "1" && ba.charAt(bit) == "1" ) {
239 if ( (bs.charAt(bit) == "1" && ba.charAt(bit) == "0") ||
240 (bs.charAt(bit) == "0" && ba.charAt(bit) == "1")
260 if ( bs.charAt(bit) == "1" || ba.charAt(bit) == "1" ) {
D11.10-1.js184 if ( Number(bin.charAt(0)) == 0 ) {
193 r += Math.pow( 2, j ) * Number(bin.charAt(31-j));
207 r += Math.pow( 2, j ) * Number(bin.charAt(31-j));
223 if ( bs.charAt(bit) == "1" && ba.charAt(bit) == "1" ) {
241 if ( (bs.charAt(bit) == "1" && ba.charAt(bit) == "0") ||
242 (bs.charAt(bit) == "0" && ba.charAt(bit) == "1")
262 if ( bs.charAt(bit) == "1" || ba.charAt(bit) == "1" ) {
D11.10-2.js183 if ( Number(bin.charAt(0)) == 0 ) {
192 r += Math.pow( 2, j ) * Number(bin.charAt(31-j));
206 r += Math.pow( 2, j ) * Number(bin.charAt(31-j));
222 if ( bs.charAt(bit) == "1" && ba.charAt(bit) == "1" ) {
240 if ( (bs.charAt(bit) == "1" && ba.charAt(bit) == "0") ||
241 (bs.charAt(bit) == "0" && ba.charAt(bit) == "1")
261 if ( bs.charAt(bit) == "1" || ba.charAt(bit) == "1" ) {
/external/apache-xml/src/main/java/org/apache/xml/serializer/utils/
DURI.java419 testChar = uriSpec.charAt(index); in initialize()
590 testChar = p_uriSpec.charAt(index); in initializeScheme()
636 testChar = p_uriSpec.charAt(index); in initializeAuthority()
658 testChar = p_uriSpec.charAt(index); in initializeAuthority()
693 if (!isDigit(portStr.charAt(i))) in initializeAuthority()
742 testChar = p_uriSpec.charAt(index); in initializePath()
752 if (index + 2 >= end ||!isHex(p_uriSpec.charAt(index + 1)) in initializePath()
753 ||!isHex(p_uriSpec.charAt(index + 2))) in initializePath()
781 testChar = p_uriSpec.charAt(index); in initializePath()
790 if (index + 2 >= end ||!isHex(p_uriSpec.charAt(index + 1)) in initializePath()
[all …]
DXML11Char.java298 char ch = name.charAt(0); in isXML11ValidName()
301 char ch2 = name.charAt(1); in isXML11ValidName()
313 ch = name.charAt(i); in isXML11ValidName()
316 char ch2 = name.charAt(i); in isXML11ValidName()
348 char ch = ncName.charAt(0); in isXML11ValidNCName()
351 char ch2 = ncName.charAt(1); in isXML11ValidNCName()
363 ch = ncName.charAt(i); in isXML11ValidNCName()
366 char ch2 = ncName.charAt(i); in isXML11ValidNCName()
396 char ch = nmtoken.charAt(i); in isXML11ValidNmtoken()
399 char ch2 = nmtoken.charAt(i); in isXML11ValidNmtoken()
/external/apache-xml/src/main/java/org/apache/xml/utils/
DURI.java439 testChar = uriSpec.charAt(index); in initialize()
610 testChar = p_uriSpec.charAt(index); in initializeScheme()
656 testChar = p_uriSpec.charAt(index); in initializeAuthority()
678 testChar = p_uriSpec.charAt(index); in initializeAuthority()
713 if (!isDigit(portStr.charAt(i))) in initializeAuthority()
762 testChar = p_uriSpec.charAt(index); in initializePath()
772 if (index + 2 >= end ||!isHex(p_uriSpec.charAt(index + 1)) in initializePath()
773 ||!isHex(p_uriSpec.charAt(index + 2))) in initializePath()
801 testChar = p_uriSpec.charAt(index); in initializePath()
810 if (index + 2 >= end ||!isHex(p_uriSpec.charAt(index + 1)) in initializePath()
[all …]
DXML11Char.java293 char ch = name.charAt(0); in isXML11ValidName()
296 char ch2 = name.charAt(1); in isXML11ValidName()
308 ch = name.charAt(i); in isXML11ValidName()
311 char ch2 = name.charAt(i); in isXML11ValidName()
343 char ch = ncName.charAt(0); in isXML11ValidNCName()
346 char ch2 = ncName.charAt(1); in isXML11ValidNCName()
358 ch = ncName.charAt(i); in isXML11ValidNCName()
361 char ch2 = ncName.charAt(i); in isXML11ValidNCName()
391 char ch = nmtoken.charAt(i); in isXML11ValidNmtoken()
394 char ch2 = nmtoken.charAt(i); in isXML11ValidNmtoken()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/encoders/
DBase64Encoder.java217 if (!ignore(data.charAt(end - 1))) in decode()
232 b1 = decodingTable[data.charAt(i++)]; in decode()
236 b2 = decodingTable[data.charAt(i++)]; in decode()
240 b3 = decodingTable[data.charAt(i++)]; in decode()
244 b4 = decodingTable[data.charAt(i++)]; in decode()
260 …length += decodeLastBlock(out, data.charAt(end - 4), data.charAt(end - 3), data.charAt(end - 2), d… in decode()
322 while ((i < finish) && ignore(data.charAt(i))) in nextI()

12345678910>>...26