Home
last modified time | relevance | path

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

12345678910>>...54

/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 …]
/external/v8/test/webkit/
Dchar-at-expected.txt24 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 …]
/external/apache-http/android/src/android/net/http/
DLegacyHttpDateTime.java126 return (dateString.charAt(0) - '0') * 10 in getDate()
127 + (dateString.charAt(1) - '0'); in getDate()
129 return (dateString.charAt(0) - '0'); in getDate()
148 int hash = Character.toLowerCase(monthString.charAt(0)) + in getMonth()
149 Character.toLowerCase(monthString.charAt(1)) + in getMonth()
150 Character.toLowerCase(monthString.charAt(2)) - 3 * 'a'; in getMonth()
183 int year = (yearString.charAt(0) - '0') * 10 in getYear()
184 + (yearString.charAt(1) - '0'); in getYear()
192 int year = (yearString.charAt(0) - '0') * 100 in getYear()
193 + (yearString.charAt(1) - '0') * 10 in getYear()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DUTF16.java195 public static int charAt(String source, int offset16) { in charAt() method in UTF16
196 char single = source.charAt(offset16); in charAt()
215 char trail = source.charAt(offset16); in _charAt()
224 char lead = source.charAt(offset16); in _charAt()
248 public static int charAt(CharSequence source, int offset16) { in charAt() method in UTF16
249 char single = source.charAt(offset16); in charAt()
268 char trail = source.charAt(offset16); in _charAt()
278 char lead = source.charAt(offset16); in _charAt()
303 public static int charAt(StringBuffer source, int offset16) { in charAt() method in UTF16
308 char single = source.charAt(offset16); in charAt()
[all …]
DMessagePattern.java865 char c=msg.charAt(index++); in parseMessage()
873 c=msg.charAt(index); in parseMessage()
889 if((index+1)<msg.length() && msg.charAt(index+1)=='\'') { in parseMessage()
979 char c=msg.charAt(index); in parseArg()
987 while(index<msg.length() && isArgTypeChar(msg.charAt(index))) { in parseArg()
996 if(length==0 || ((c=msg.charAt(index))!=',' && c!='}')) { in parseArg()
1049 char c=msg.charAt(index++); in parseSimpleStyle()
1084 if(index==msg.length() || msg.charAt(index)=='}') { in parseChoiceStyle()
1107 char c=msg.charAt(index); in parseChoiceStyle()
1120 if(msg.charAt(index)=='}') { in parseChoiceStyle()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DUTF16.java215 public static int charAt(String source, int offset16) { in charAt() method in UTF16
216 char single = source.charAt(offset16); in charAt()
235 char trail = source.charAt(offset16); in _charAt()
244 char lead = source.charAt(offset16); in _charAt()
269 public static int charAt(CharSequence source, int offset16) { in charAt() method in UTF16
270 char single = source.charAt(offset16); in charAt()
289 char trail = source.charAt(offset16); in _charAt()
299 char lead = source.charAt(offset16); in _charAt()
325 public static int charAt(StringBuffer source, int offset16) { in charAt() method in UTF16
330 char single = source.charAt(offset16); in charAt()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DCharsTrie.java138 return (remainingMatchLength_<0 && (node=chars_.charAt(pos))>=kMinValueLead) ? in current()
185 if(inUnit==chars_.charAt(pos++)) { in next()
189 return (length<0 && (node=chars_.charAt(pos))>=kMinValueLead) ? in next()
249 return (length<0 && (node=chars_.charAt(pos))>=kMinValueLead) ? in next()
252 inUnit=s.charAt(sIndex++); in next()
257 if(inUnit!=chars_.charAt(pos)) { in next()
264 int node=chars_.charAt(pos++); in next()
280 inUnit=s.charAt(sIndex++); in next()
282 node=chars_.charAt(pos++); in next()
286 if(inUnit!=chars_.charAt(pos)) { in next()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DCharsTrie.java131 return (remainingMatchLength_<0 && (node=chars_.charAt(pos))>=kMinValueLead) ? in current()
175 if(inUnit==chars_.charAt(pos++)) { in next()
179 return (length<0 && (node=chars_.charAt(pos))>=kMinValueLead) ? in next()
237 return (length<0 && (node=chars_.charAt(pos))>=kMinValueLead) ? in next()
240 inUnit=s.charAt(sIndex++); in next()
245 if(inUnit!=chars_.charAt(pos)) { in next()
252 int node=chars_.charAt(pos++); in next()
268 inUnit=s.charAt(sIndex++); in next()
270 node=chars_.charAt(pos++); in next()
274 if(inUnit!=chars_.charAt(pos)) { in next()
[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/owasp/sanitizer/src/main/org/owasp/html/
DCssTokens.java403 if (cssEnd > 0 && sb.charAt(cssEnd - 1) == ' ') { in build()
448 char ch = css.charAt(pos); in lex()
458 char lookahead = pos + 1 < cssLimit ? css.charAt(pos + 1) : 0; in lex()
519 char lookahead = pos + 1 < cssLimit ? css.charAt(pos + 1) : 0; in lex()
522 && isDecimal(css.charAt(pos + 2)))) { in lex()
541 char next = css.charAt(pos); in lex()
574 char lookahead = pos + 1 < cssLimit ? css.charAt(pos + 1) : 0; in lex()
623 : "empty token at " + pos + ", ch0=" + css.charAt(startOfToken) in lex()
624 + ":U+" + Integer.toHexString(css.charAt(startOfToken)); in lex()
631 && sb.charAt(startOfOutputToken) == ' ') { in lex()
[all …]
/external/apache-http/src/org/apache/commons/codec/language/
DDoubleMetaphone.java102 switch (value.charAt(index)) { in doubleMetaphone()
113 index = charAt(value, index + 1) == 'B' ? index + 2 : index + 1; in doubleMetaphone()
128 index = charAt(value, index + 1) == 'F' ? index + 2 : index + 1; in doubleMetaphone()
141 index = charAt(value, index + 1) == 'K' ? index + 2 : index + 1; in doubleMetaphone()
152 index = charAt(value, index + 1) == 'N' ? index + 2 : index + 1; in doubleMetaphone()
164 index = charAt(value, index + 1) == 'Q' ? index + 2 : index + 1; in doubleMetaphone()
177 index = charAt(value, index + 1) == 'V' ? index + 2 : index + 1; in doubleMetaphone()
306 !(index == 1 && charAt(value, 0) == 'M')) { in handleC()
345 if ((index == 1 && charAt(value, index - 1) == 'A') || in handleCC()
426 if (charAt(value, index + 1) == 'H') { in handleG()
[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/jetty/src/java/org/eclipse/jetty/util/
DURIUtil.java85 char c=path.charAt(i); in encodePath()
173 char c=path.charAt(i); in encodePath()
230 char c=path.charAt(i); in encodeString()
245 char c=path.charAt(i); in encodeString()
279 char c = path.charAt(i); in decodePath()
429 if (buf.charAt(split-1)=='/') in addPaths()
488 if (path.charAt(start+1)!='.') in canonicalPath()
492 if (path.charAt(start+1)!='.' || path.charAt(start+2)!='.') in canonicalPath()
515 if (buf.charAt(start+1)!='.') in canonicalPath()
520 if(delStart>0 && delEnd==buf.length() && buf.charAt(delEnd-1)=='.') in canonicalPath()
[all …]
/external/mockftpserver/tags/2.3/src/main/java/org/mockftpserver/fake/filesystem/
DPermissions.java92 return rwxString.charAt(0) == READ_CHAR; in canUserRead()
99 return rwxString.charAt(1) == WRITE_CHAR; in canUserWrite()
106 return rwxString.charAt(2) == EXECUTE_CHAR; in canUserExecute()
113 return rwxString.charAt(3) == READ_CHAR; in canGroupRead()
120 return rwxString.charAt(4) == WRITE_CHAR; in canGroupWrite()
127 return rwxString.charAt(5) == EXECUTE_CHAR; in canGroupExecute()
134 return rwxString.charAt(6) == READ_CHAR; in canWorldRead()
141 return rwxString.charAt(7) == WRITE_CHAR; in canWorldWrite()
148 return rwxString.charAt(8) == EXECUTE_CHAR; in canWorldExecute()
/external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/
DPermissions.java92 return rwxString.charAt(0) == READ_CHAR; in canUserRead()
99 return rwxString.charAt(1) == WRITE_CHAR; in canUserWrite()
106 return rwxString.charAt(2) == EXECUTE_CHAR; in canUserExecute()
113 return rwxString.charAt(3) == READ_CHAR; in canGroupRead()
120 return rwxString.charAt(4) == WRITE_CHAR; in canGroupWrite()
127 return rwxString.charAt(5) == EXECUTE_CHAR; in canGroupExecute()
134 return rwxString.charAt(6) == READ_CHAR; in canWorldRead()
141 return rwxString.charAt(7) == WRITE_CHAR; in canWorldWrite()
148 return rwxString.charAt(8) == EXECUTE_CHAR; in canWorldExecute()
/external/mockftpserver/tags/2.0/src/main/java/org/mockftpserver/fake/filesystem/
DPermissions.java92 return rwxString.charAt(0) == READ_CHAR; in canUserRead()
99 return rwxString.charAt(1) == WRITE_CHAR; in canUserWrite()
106 return rwxString.charAt(2) == EXECUTE_CHAR; in canUserExecute()
113 return rwxString.charAt(3) == READ_CHAR; in canGroupRead()
120 return rwxString.charAt(4) == WRITE_CHAR; in canGroupWrite()
127 return rwxString.charAt(5) == EXECUTE_CHAR; in canGroupExecute()
134 return rwxString.charAt(6) == READ_CHAR; in canWorldRead()
141 return rwxString.charAt(7) == WRITE_CHAR; in canWorldWrite()
148 return rwxString.charAt(8) == EXECUTE_CHAR; in canWorldExecute()
/external/mockftpserver/tags/2.2/src/main/java/org/mockftpserver/fake/filesystem/
DPermissions.java92 return rwxString.charAt(0) == READ_CHAR; in canUserRead()
99 return rwxString.charAt(1) == WRITE_CHAR; in canUserWrite()
106 return rwxString.charAt(2) == EXECUTE_CHAR; in canUserExecute()
113 return rwxString.charAt(3) == READ_CHAR; in canGroupRead()
120 return rwxString.charAt(4) == WRITE_CHAR; in canGroupWrite()
127 return rwxString.charAt(5) == EXECUTE_CHAR; in canGroupExecute()
134 return rwxString.charAt(6) == READ_CHAR; in canWorldRead()
141 return rwxString.charAt(7) == WRITE_CHAR; in canWorldWrite()
148 return rwxString.charAt(8) == EXECUTE_CHAR; in canWorldExecute()
/external/mockftpserver/tags/2.4/src/main/java/org/mockftpserver/fake/filesystem/
DPermissions.java92 return rwxString.charAt(0) == READ_CHAR; in canUserRead()
99 return rwxString.charAt(1) == WRITE_CHAR; in canUserWrite()
106 return rwxString.charAt(2) == EXECUTE_CHAR; in canUserExecute()
113 return rwxString.charAt(3) == READ_CHAR; in canGroupRead()
120 return rwxString.charAt(4) == WRITE_CHAR; in canGroupWrite()
127 return rwxString.charAt(5) == EXECUTE_CHAR; in canGroupExecute()
134 return rwxString.charAt(6) == READ_CHAR; in canWorldRead()
141 return rwxString.charAt(7) == WRITE_CHAR; in canWorldWrite()
148 return rwxString.charAt(8) == EXECUTE_CHAR; in canWorldExecute()
/external/mockftpserver/tags/2.0.1/src/main/java/org/mockftpserver/fake/filesystem/
DPermissions.java92 return rwxString.charAt(0) == READ_CHAR; in canUserRead()
99 return rwxString.charAt(1) == WRITE_CHAR; in canUserWrite()
106 return rwxString.charAt(2) == EXECUTE_CHAR; in canUserExecute()
113 return rwxString.charAt(3) == READ_CHAR; in canGroupRead()
120 return rwxString.charAt(4) == WRITE_CHAR; in canGroupWrite()
127 return rwxString.charAt(5) == EXECUTE_CHAR; in canGroupExecute()
134 return rwxString.charAt(6) == READ_CHAR; in canWorldRead()
141 return rwxString.charAt(7) == WRITE_CHAR; in canWorldWrite()
148 return rwxString.charAt(8) == EXECUTE_CHAR; in canWorldExecute()
/external/mockftpserver/tags/2.0-rc1/src/main/java/org/mockftpserver/fake/filesystem/
DPermissions.java92 return rwxString.charAt(0) == READ_CHAR; in canUserRead()
99 return rwxString.charAt(1) == WRITE_CHAR; in canUserWrite()
106 return rwxString.charAt(2) == EXECUTE_CHAR; in canUserExecute()
113 return rwxString.charAt(3) == READ_CHAR; in canGroupRead()
120 return rwxString.charAt(4) == WRITE_CHAR; in canGroupWrite()
127 return rwxString.charAt(5) == EXECUTE_CHAR; in canGroupExecute()
134 return rwxString.charAt(6) == READ_CHAR; in canWorldRead()
141 return rwxString.charAt(7) == WRITE_CHAR; in canWorldWrite()
148 return rwxString.charAt(8) == EXECUTE_CHAR; in canWorldExecute()
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/
DPermissions.java92 return rwxString.charAt(0) == READ_CHAR; in canUserRead()
99 return rwxString.charAt(1) == WRITE_CHAR; in canUserWrite()
106 return rwxString.charAt(2) == EXECUTE_CHAR; in canUserExecute()
113 return rwxString.charAt(3) == READ_CHAR; in canGroupRead()
120 return rwxString.charAt(4) == WRITE_CHAR; in canGroupWrite()
127 return rwxString.charAt(5) == EXECUTE_CHAR; in canGroupExecute()
134 return rwxString.charAt(6) == READ_CHAR; in canWorldRead()
141 return rwxString.charAt(7) == WRITE_CHAR; in canWorldWrite()
148 return rwxString.charAt(8) == EXECUTE_CHAR; in canWorldExecute()
/external/mockftpserver/tags/2.0.2/src/main/java/org/mockftpserver/fake/filesystem/
DPermissions.java92 return rwxString.charAt(0) == READ_CHAR; in canUserRead()
99 return rwxString.charAt(1) == WRITE_CHAR; in canUserWrite()
106 return rwxString.charAt(2) == EXECUTE_CHAR; in canUserExecute()
113 return rwxString.charAt(3) == READ_CHAR; in canGroupRead()
120 return rwxString.charAt(4) == WRITE_CHAR; in canGroupWrite()
127 return rwxString.charAt(5) == EXECUTE_CHAR; in canGroupExecute()
134 return rwxString.charAt(6) == READ_CHAR; in canWorldRead()
141 return rwxString.charAt(7) == WRITE_CHAR; in canWorldWrite()
148 return rwxString.charAt(8) == EXECUTE_CHAR; in canWorldExecute()
/external/mockftpserver/tags/2.1/src/main/java/org/mockftpserver/fake/filesystem/
DPermissions.java92 return rwxString.charAt(0) == READ_CHAR; in canUserRead()
99 return rwxString.charAt(1) == WRITE_CHAR; in canUserWrite()
106 return rwxString.charAt(2) == EXECUTE_CHAR; in canUserExecute()
113 return rwxString.charAt(3) == READ_CHAR; in canGroupRead()
120 return rwxString.charAt(4) == WRITE_CHAR; in canGroupWrite()
127 return rwxString.charAt(5) == EXECUTE_CHAR; in canGroupExecute()
134 return rwxString.charAt(6) == READ_CHAR; in canWorldRead()
141 return rwxString.charAt(7) == WRITE_CHAR; in canWorldWrite()
148 return rwxString.charAt(8) == EXECUTE_CHAR; in canWorldExecute()
/external/mockftpserver/tags/2.5/src/main/java/org/mockftpserver/fake/filesystem/
DPermissions.java92 return rwxString.charAt(0) == READ_CHAR; in canUserRead()
99 return rwxString.charAt(1) == WRITE_CHAR; in canUserWrite()
106 return rwxString.charAt(2) == EXECUTE_CHAR; in canUserExecute()
113 return rwxString.charAt(3) == READ_CHAR; in canGroupRead()
120 return rwxString.charAt(4) == WRITE_CHAR; in canGroupWrite()
127 return rwxString.charAt(5) == EXECUTE_CHAR; in canGroupExecute()
134 return rwxString.charAt(6) == READ_CHAR; in canWorldRead()
141 return rwxString.charAt(7) == WRITE_CHAR; in canWorldWrite()
148 return rwxString.charAt(8) == EXECUTE_CHAR; in canWorldExecute()
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/
DPermissions.java92 return rwxString.charAt(0) == READ_CHAR; in canUserRead()
99 return rwxString.charAt(1) == WRITE_CHAR; in canUserWrite()
106 return rwxString.charAt(2) == EXECUTE_CHAR; in canUserExecute()
113 return rwxString.charAt(3) == READ_CHAR; in canGroupRead()
120 return rwxString.charAt(4) == WRITE_CHAR; in canGroupWrite()
127 return rwxString.charAt(5) == EXECUTE_CHAR; in canGroupExecute()
134 return rwxString.charAt(6) == READ_CHAR; in canWorldRead()
141 return rwxString.charAt(7) == WRITE_CHAR; in canWorldWrite()
148 return rwxString.charAt(8) == EXECUTE_CHAR; in canWorldExecute()

12345678910>>...54