Home
last modified time | relevance | path

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

12345678

/libcore/ojluni/src/main/java/sun/misc/
DVersion.java276 Character.isDigit(cs.charAt(0)) && cs.charAt(1) == '.' && in initVersions()
277 Character.isDigit(cs.charAt(2)) && cs.charAt(3) == '.' && in initVersions()
278 Character.isDigit(cs.charAt(4))) { in initVersions()
279 jvm_major_version = Character.digit(cs.charAt(0), 10); in initVersions()
280 jvm_minor_version = Character.digit(cs.charAt(2), 10); in initVersions()
281 jvm_micro_version = Character.digit(cs.charAt(4), 10); in initVersions()
283 if (cs.charAt(0) == '_' && cs.length() >= 3) { in initVersions()
285 if (Character.isDigit(cs.charAt(1)) && in initVersions()
286 Character.isDigit(cs.charAt(2)) && in initVersions()
287 Character.isDigit(cs.charAt(3))) in initVersions()
[all …]
DRegexpPool.java111 p = p.find(re.charAt(i)); in delete()
121 p = p.find(re.charAt(i)); in delete()
168 if (re.charAt(0) == '*') { in add()
171 p = p.add(re.charAt(--len)); in add()
174 if (re.charAt(len - 1) == '*') in add()
180 p = p.add(re.charAt(i)); in add()
211 p = p.find(s.charAt(i)); in matchAfter()
222 p = p.find(s.charAt(i)); in matchAfter()
DASCIICaseInsensitiveComparator.java44 char c1 = s1.charAt(i); in compare()
45 char c2 = s2.charAt(i); in compare()
77 h = 31*h + toLower(s.charAt(i));
/libcore/ojluni/src/main/java/sun/util/locale/
DLocaleUtils.java61 char c1 = s1.charAt(i); in caseIgnoreMatch()
62 char c2 = s2.charAt(i); in caseIgnoreMatch()
92 if (isUpper(s.charAt(idx))) { in toLowerString()
102 char c = s.charAt(i); in toLowerString()
112 if (isLower(s.charAt(idx))) { in toUpperString()
122 char c = s.charAt(i); in toUpperString()
134 if (!isLower(s.charAt(idx))) { in toTitleString()
136 if (isUpper(s.charAt(idx))) { in toTitleString()
147 char c = s.charAt(i); in toTitleString()
174 if (!isAlpha(s.charAt(i))) { in isAlphaString()
[all …]
DStringTokenIterator.java46 delimiterChar = dlms.charAt(0); in StringTokenIterator()
112 if (text.charAt(idx) == delimiterChar) { in nextDelimiter()
119 char c = text.charAt(idx); in nextDelimiter()
121 if (c == dlms.charAt(i)) { in nextDelimiter()
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DPosixFilePermissions.java130 if (isR(perms.charAt(0))) result.add(OWNER_READ); in fromString()
131 if (isW(perms.charAt(1))) result.add(OWNER_WRITE); in fromString()
132 if (isX(perms.charAt(2))) result.add(OWNER_EXECUTE); in fromString()
133 if (isR(perms.charAt(3))) result.add(GROUP_READ); in fromString()
134 if (isW(perms.charAt(4))) result.add(GROUP_WRITE); in fromString()
135 if (isX(perms.charAt(5))) result.add(GROUP_EXECUTE); in fromString()
136 if (isR(perms.charAt(6))) result.add(OTHERS_READ); in fromString()
137 if (isW(perms.charAt(7))) result.add(OTHERS_WRITE); in fromString()
138 if (isX(perms.charAt(8))) result.add(OTHERS_EXECUTE); in fromString()
/libcore/ojluni/src/main/java/java/lang/
DCharSequence.java87 char charAt(int index); in charAt() method
140 return charAt(cur++); in chars()
149 block.accept(charAt(cur)); in chars()
187 char c1 = charAt(i++); in codePoints()
191 char c2 = charAt(i); in codePoints()
215 char c1 = charAt(cur++); in codePoints()
217 char c2 = charAt(cur); in codePoints()
DString.java582 public native char charAt(int index); in charAt() method in String
840 dst[j++] = (byte)charAt(i++); in getBytes()
953 if (charAt(i) != anotherString.charAt(i)) in equals()
989 if (charAt(i) != v2[i]) { in nonSyncContentEquals()
1033 if (charAt(i) != cs.charAt(i)) { in contentEquals()
1144 char c1 = s1.charAt(i); in compare()
1145 char c2 = s2.charAt(i); in compare()
1233 if (charAt(to++) != other.charAt(po++)) { in regionMatches()
1301 char c1 = charAt(to++); in regionMatches()
1302 char c2 = other.charAt(po++); in regionMatches()
[all …]
/libcore/ojluni/src/main/java/java/util/prefs/
DBase64.java156 if (s.charAt(sLen-1) == '=') { in base64ToByteArray()
160 if (s.charAt(sLen-2) == '=') in base64ToByteArray()
168 int ch0 = base64toInt(s.charAt(inCursor++), alphaToInt); in base64ToByteArray()
169 int ch1 = base64toInt(s.charAt(inCursor++), alphaToInt); in base64ToByteArray()
170 int ch2 = base64toInt(s.charAt(inCursor++), alphaToInt); in base64ToByteArray()
171 int ch3 = base64toInt(s.charAt(inCursor++), alphaToInt); in base64ToByteArray()
179 int ch0 = base64toInt(s.charAt(inCursor++), alphaToInt); in base64ToByteArray()
180 int ch1 = base64toInt(s.charAt(inCursor++), alphaToInt); in base64ToByteArray()
184 int ch2 = base64toInt(s.charAt(inCursor++), alphaToInt); in base64ToByteArray()
/libcore/ojluni/src/main/java/sun/reflect/
DReflection.java164 if (name1.charAt(idx1) == '[') { in isSameClassPackage()
167 } while (name1.charAt(idx1) == '['); in isSameClassPackage()
168 if (name1.charAt(idx1) != 'L') { in isSameClassPackage()
173 if (name2.charAt(idx2) == '[') { in isSameClassPackage()
176 } while (name2.charAt(idx2) == '['); in isSameClassPackage()
177 if (name2.charAt(idx2) != 'L') { in isSameClassPackage()
/libcore/ojluni/src/main/java/sun/security/x509/
DDNSName.java79 if (name.charAt(0) == '.' || name.charAt(name.length() -1) == '.') in DNSName()
93 if (alpha.indexOf(name.charAt(startIndex)) < 0) in DNSName()
97 char x = name.charAt(nonStartIndex); in DNSName()
209 if (thisName.charAt(inNdx-1) == '.' ) in constrains()
215 if (inName.charAt(ndx-1) == '.' ) in constrains()
/libcore/ojluni/src/main/java/java/net/
DURLDecoder.java148 c = s.charAt(i); in decode()
176 if (!isValidHexChar(s.charAt(i+1)) || !isValidHexChar(s.charAt(i+2))) { in decode()
188 c = s.charAt(i); in decode()
DURI.java1701 char c = s.charAt(i); in equal()
1702 char d = t.charAt(i); in equal()
1712 if (toLower(s.charAt(i)) != toLower(t.charAt(i))) in equal()
1715 if (toLower(s.charAt(i)) != toLower(t.charAt(i))) in equal()
1732 if (toLower(s.charAt(i)) != toLower(t.charAt(i))) in equalIgnoringCase()
1750 char ch = s.charAt(index); in normalizedHash()
1757 h = 31 * h + toUpper(s.charAt(i)); in normalizedHash()
1770 h = 31 * h + toLower(s.charAt(i)); in hashIgnoringCase()
1795 int c = toLower(s.charAt(i)) - toLower(t.charAt(i)); in compareIgnoringCase()
1817 && ((path.length() > 0) && (path.charAt(0) != '/')))
[all …]
/libcore/json/src/main/java/org/json/
DJSONTokener.java117 int c = in.charAt(pos++); in nextCleanInternal()
130 char peek = in.charAt(pos); in nextCleanInternal()
176 char c = in.charAt(pos); in skipToEndOfLine()
204 int c = in.charAt(pos++); in nextString()
238 char escaped = in.charAt(pos++); in readEscapeCharacter()
337 char c = in.charAt(pos); in nextToInternal()
380 if (pos < in.length() && in.charAt(pos) == '>') { in readObject()
481 return pos < in.length() ? in.charAt(pos++) : '\0'; in next()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixUriUtils.java76 char c = p.charAt(pos++); in fromUri()
80 char c1 = p.charAt(pos++); in fromUri()
81 char c2 = p.charAt(pos++); in fromUri()
116 if (sb.charAt(sb.length()-1) != '/') {
139 char c = chars.charAt(i); in lowMask()
151 char c = chars.charAt(i); in highMask()
DGlobs.java47 return glob.charAt(i); in next()
63 char c = globPattern.charAt(i++); in toRegexPattern()
71 char next = globPattern.charAt(i++); in toRegexPattern()
110 c = globPattern.charAt(i++); in toRegexPattern()
/libcore/ojluni/src/main/java/java/io/
DDataOutputStream.java276 out.write((byte)s.charAt(i)); in writeBytes()
296 int v = s.charAt(i); in writeChars()
353 c = str.charAt(i); in writeUTF()
382 c = str.charAt(i); in writeUTF()
388 c = str.charAt(i); in writeUTF()
DUnixFileSystem.java42 new GetPropertyAction("file.separator")).charAt(0); in UnixFileSystem()
44 new GetPropertyAction("path.separator")).charAt(0); in UnixFileSystem()
90 return (pathname.charAt(0) == '/') ? 1 : 0; in prefixLength()
99 if (child.charAt(0) == '/') { in resolve()
207 char c = path.charAt(idx); in parentOrNull()
220 path.charAt(idx - 1) == sep) { in parentOrNull()
245 boolean hidden = (name.length() > 0) && (name.charAt(0) == '.'); in getBooleanAttributes()
/libcore/luni/src/test/java/tests/java/lang/String/
DTests.java31 assertTrue("abcd".charAt(0) == 'a'); in test_charAt()
32 assertTrue("abcd".charAt(3) == 'd'); in test_charAt()
/libcore/ojluni/src/main/java/java/nio/
DStringCharBuffer.java72 return str.charAt(nextGetIndex() + offset); in get()
76 return str.charAt(checkIndex(index) + offset); in get()
80 return str.charAt(index + offset); in getUnchecked()
/libcore/luni/src/test/java/libcore/java/io/
DOldSequenceInputStreamTest.java60 s1.charAt(1), (char) si.read()); in test_read()
66 s1.charAt(2), (char) si.read()); in test_read()
96 s2.charAt(0), (char) si.read()); in test_read()
197 assertEquals(s1.charAt(i), sequenceInputStream1.read()); in test_readSkipsEmpty()
200 assertEquals(s2.charAt(i), sequenceInputStream1.read()); in test_readSkipsEmpty()
/libcore/luni/src/main/java/javax/xml/transform/stream/
DFilePathToURI.java67 if (len >= 2 && path.charAt(1) == ':') { in filepath2URI()
68 ch = Character.toUpperCase(path.charAt(0)); in filepath2URI()
77 ch = path.charAt(i); in filepath2URI()
/libcore/ojluni/src/main/java/java/text/
DStringCharacterIterator.java167 return text.charAt(pos); in current()
182 return text.charAt(pos); in next()
198 return text.charAt(pos); in previous()
/libcore/luni/src/main/java/javax/xml/parsers/
DFilePathToURI.java67 if (len >= 2 && path.charAt(1) == ':') { in filepath2URI()
68 ch = Character.toUpperCase(path.charAt(0)); in filepath2URI()
77 ch = path.charAt(i); in filepath2URI()
/libcore/ojluni/src/main/java/java/util/
DStringTokenizer.java152 c = delimiters.charAt(i); in setMaxDelimCodePoint()
251 char c = str.charAt(position); in skipDelimiters()
274 char c = str.charAt(position); in scanToken()
287 char c = str.charAt(position); in scanToken()

12345678