Home
last modified time | relevance | path

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

1234567

/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));
DMessageUtils.java62 char ch = patt.charAt(i); in subst()
65 int index = Character.digit(patt.charAt(i + 1), 10); in subst()
67 result.append(patt.charAt(i + 1)); in subst()
/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/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/java/lang/
DString.java618 public native char charAt(int index); in charAt() method in String
885 dst[j++] = (byte)charAt(i++); in getBytes()
1006 if (charAt(i) != anotherString.charAt(i)) in equals()
1042 if (charAt(i) != v2[i]) { in nonSyncContentEquals()
1086 if (charAt(i) != cs.charAt(i)) { in contentEquals()
1199 char c1 = s1.charAt(i); in compare()
1200 char c2 = s2.charAt(i); in compare()
1288 if (charAt(to++) != other.charAt(po++)) { in regionMatches()
1356 char c1 = charAt(to++); in regionMatches()
1357 char c2 = other.charAt(po++); in regionMatches()
[all …]
/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/sun/reflect/
DReflection.java237 if (name1.charAt(idx1) == '[') { in isSameClassPackage()
240 } while (name1.charAt(idx1) == '['); in isSameClassPackage()
241 if (name1.charAt(idx1) != 'L') { in isSameClassPackage()
246 if (name2.charAt(idx2) == '[') { in isSameClassPackage()
249 } while (name2.charAt(idx2) == '['); in isSameClassPackage()
250 if (name2.charAt(idx2) != 'L') { in isSameClassPackage()
/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()
189 c = s.charAt(i); in decode()
DURI.java1702 char c = s.charAt(i); in equal()
1703 char d = t.charAt(i); in equal()
1713 if (toLower(s.charAt(i)) != toLower(t.charAt(i))) in equal()
1716 if (toLower(s.charAt(i)) != toLower(t.charAt(i))) in equal()
1733 if (toLower(s.charAt(i)) != toLower(t.charAt(i))) in equalIgnoringCase()
1751 char ch = s.charAt(index); in normalizedHash()
1758 h = 31 * h + toUpper(s.charAt(i)); in normalizedHash()
1771 h = 31 * h + toLower(s.charAt(i)); in hashIgnoringCase()
1796 int c = toLower(s.charAt(i)) - toLower(t.charAt(i)); in compareIgnoringCase()
1818 && ((path.length() > 0) && (path.charAt(0) != '/')))
[all …]
DURLStreamHandler.java167 if (!isUNCName && (start <= limit - 2) && (spec.charAt(start) == '/') && in parseURL()
168 (spec.charAt(start + 1) == '/')) { in parseURL()
180 switch (spec.charAt(i)) { in parseURL()
208 if (host.length()>0 && (host.charAt(0) == '[')) { in parseURL()
221 if (nhost.charAt(ind+1) == ':') { in parseURL()
244 char firstPortChar = host.charAt(ind+1); in parseURL()
284 if (spec.charAt(start) == '/' || spec.charAt(start) == '\\') { in parseURL()
/libcore/json/src/main/java/org/json/
DJSONTokener.java122 int c = in.charAt(pos++); in nextCleanInternal()
135 char peek = in.charAt(pos); in nextCleanInternal()
182 char c = in.charAt(pos); in skipToEndOfLine()
210 int c = in.charAt(pos++); in nextString()
245 char escaped = in.charAt(pos++); in readEscapeCharacter()
346 char c = in.charAt(pos); in nextToInternal()
390 if (pos < in.length() && in.charAt(pos) == '>') { in readObject()
492 return pos < in.length() ? in.charAt(pos++) : '\0'; in next()
/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/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.java48 new GetPropertyAction("file.separator")).charAt(0); in UnixFileSystem()
50 new GetPropertyAction("path.separator")).charAt(0); in UnixFileSystem()
96 return (pathname.charAt(0) == '/') ? 1 : 0; in prefixLength()
105 if (child.charAt(0) == '/') { in resolve()
216 char c = path.charAt(idx); in parentOrNull()
229 path.charAt(idx - 1) == sep) { in parentOrNull()
256 boolean hidden = (name.length() > 0) && (name.charAt(0) == '.'); in getBooleanAttributes()
DStringBufferInputStream.java92 return (pos < count) ? (buffer.charAt(pos++) & 0xFF) : -1; in read()
133 b[off++] = (byte)s.charAt(pos++); in read()
/libcore/ojluni/src/main/java/java/nio/
DStringCharBuffer.java73 return str.charAt(nextGetIndex() + offset); in get()
77 return str.charAt(checkIndex(index) + offset); in get()
81 return str.charAt(index + offset); in getUnchecked()
/libcore/ojluni/src/main/java/sun/nio/fs/
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/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/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()

1234567