Home
last modified time | relevance | path

Searched refs:substring (Results 1 – 25 of 241) sorted by relevance

12345678910

/libcore/ojluni/src/main/java/java/net/
DURLStreamHandler.java147 query = spec.substring(queryStart+1, limit); in parseURL()
150 spec = spec.substring(0, queryStart); in parseURL()
190 host = authority = spec.substring(start, i); in parseURL()
199 userInfo = authority.substring(0, ind); in parseURL()
200 host = authority.substring(ind+1); in parseURL()
212 host = nhost.substring(0,ind+1); in parseURL()
214 isIPv6LiteralAddress(host.substring(1, ind))) { in parseURL()
225 port = Integer.parseInt(nhost.substring(ind+1)); in parseURL()
246 port = Integer.parseInt(host.substring(ind + 1)); in parseURL()
249 host.substring(ind + 1)); in parseURL()
[all …]
DHttpCookie.java216 header = header.substring(SET_COOKIE2.length()); in parse()
218 header = header.substring(SET_COOKIE.length()); in parse()
691 String H = host.substring(0, lengthDiff); in domainMatches()
692 String D = host.substring(lengthDiff); in domainMatches()
705 host.equalsIgnoreCase(domain.substring(1))); in domainMatches()
857 String name = namevaluePair.substring(0, index).trim(); in parseInternal()
858 String value = namevaluePair.substring(index + 1).trim(); in parseInternal()
880 name = namevaluePair.substring(0, index).trim(); in parseInternal()
881 value = namevaluePair.substring(index + 1).trim(); in parseInternal()
1155 return str.substring(1, str.length() - 1); in stripOffSurroundingQuote()
[all …]
DURLDecoder.java178 + s.substring(i, i + 3)); in decode()
181 int v = Integer.parseInt(s.substring(i+1,i+3),16); in decode()
185 + s.substring(i, i + 3)); in decode()
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DHandler.java74 String entry1 = file1.substring(sep1 + 2); in sameFile()
75 String entry2 = file2.substring(sep2 + 2); in sameFile()
82 enclosedURL1 = new URL(file1.substring(0, sep1)); in sameFile()
83 enclosedURL2 = new URL(file2.substring(0, sep2)); in sameFile()
110 String fileWithoutEntry = file.substring(0, sep); in hashCode()
118 String entry = file.substring(sep + 2); in hashCode()
135 ref = spec.substring(refPos + 1, spec.length()); in parseURL()
146 absoluteSpec = spec.substring(0, 4).equalsIgnoreCase("jar:"); in parseURL()
148 spec = spec.substring(start, limit); in parseURL()
157 String toBangSlash = file.substring(0, bangSlash); in parseURL()
[all …]
/libcore/luni/src/test/java/tests/org/w3c/dom/
DDOMTestCase.java82 + filename.substring(14).replace('.', '/') in resolveURI()
117 uri = actual.substring(0, lastPound); in assertURIEquals()
118 actualFragment = actual.substring(lastPound + 1); in assertURIEquals()
130 uri = actual.substring(0, lastQuestion); in assertURIEquals()
131 actualQuery = actual.substring(lastQuestion + 1); in assertURIEquals()
142 actualScheme = uri.substring(0, firstColon); in assertURIEquals()
143 actualPath = uri.substring(firstColon + 1); in assertURIEquals()
158 actualHost = actualPath.substring(0, termSlash); in assertURIEquals()
167 actualFile = actualPath.substring(finalSlash + 1); in assertURIEquals()
178 actualName = actualFile.substring(0, finalPeriod); in assertURIEquals()
/libcore/ojluni/src/main/java/sun/security/util/
DPropertyExpander.java78 sb.append(value.substring(i, p)); in expand()
88 sb.append(value.substring(p)); in expand()
93 sb.append(value.substring(p, pe+1)); in expand()
101 sb.append(value.substring(p, pe)); in expand()
104 String prop = value.substring(p+2, pe); in expand()
135 sb.append(value.substring(i, max)); in expand()
/libcore/ojluni/src/main/java/java/sql/
DTimestamp.java199 date_s = s.substring(0,dividingSpace); in valueOf()
200 time_s = s.substring(dividingSpace+1); in valueOf()
219 String yyyy = date_s.substring(0, firstDash); in valueOf()
220 String mm = date_s.substring(firstDash + 1, secondDash); in valueOf()
221 String dd = date_s.substring(secondDash + 1); in valueOf()
241 hour = Integer.parseInt(time_s.substring(0, firstColon)); in valueOf()
243 Integer.parseInt(time_s.substring(firstColon+1, secondColon)); in valueOf()
246 Integer.parseInt(time_s.substring(secondColon+1, period)); in valueOf()
247 nanos_s = time_s.substring(period+1); in valueOf()
252 nanos_s = nanos_s + zeros.substring(0,9-nanos_s.length()); in valueOf()
[all …]
DTime.java103 hour = Integer.parseInt(s.substring(0, firstColon)); in valueOf()
105 Integer.parseInt(s.substring(firstColon+1, secondColon)); in valueOf()
106 second = Integer.parseInt(s.substring(secondColon+1)); in valueOf()
/libcore/luni/src/main/java/libcore/icu/
DICU.java98 outputArray[IDX_LANGUAGE] = string.substring(0, first); in parseLangScriptRegionAndVariants()
99 final String secondString = string.substring(first + 1); in parseLangScriptRegionAndVariants()
119 outputArray[IDX_LANGUAGE] = string.substring(0, first); in parseLangScriptRegionAndVariants()
120 final String secondString = string.substring(first + 1, second); in parseLangScriptRegionAndVariants()
121 final String thirdString = string.substring(second + 1); in parseLangScriptRegionAndVariants()
142 outputArray[IDX_VARIANT] = string.substring(first + 1); in parseLangScriptRegionAndVariants()
149 outputArray[IDX_LANGUAGE] = string.substring(0, first); in parseLangScriptRegionAndVariants()
150 final String secondString = string.substring(first + 1, second); in parseLangScriptRegionAndVariants()
153 outputArray[IDX_REGION] = string.substring(second + 1, third); in parseLangScriptRegionAndVariants()
154 outputArray[IDX_VARIANT] = string.substring(third + 1); in parseLangScriptRegionAndVariants()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DPushbackInputStreamTest.java150 .equals(fileString.substring(0, 100))); in test_read$BII()
165 .equals(fileString.substring(50, 100))); in test_skipJ()
171 .equals(fileString.substring(75, 100))); in test_skipJ()
183 .equals(fileString.substring(0, 100))); in test_unread$B()
187 .equals(fileString.substring(0, 50))); in test_unread$B()
202 .equals(fileString.substring(0, 100))); in test_unread$BII()
206 .equals(fileString.substring(50, 100))); in test_unread$BII()
/libcore/dom/src/test/java/org/w3c/domts/level1/core/
Dcharacterdatasubstringexceedsvalue.java71 String substring; in runTest() local
76 substring = child.substringData(9, 10); in runTest()
77 assertEquals("characterdataSubStringExceedsValueAssert", "Martin", substring); in runTest()
Dcharacterdatasubstringvalue.java70 String substring; in runTest() local
75 substring = child.substringData(0, 8); in runTest()
76 assertEquals("characterdataSubStringValueAssert", "Margaret", substring); in runTest()
Dhc_characterdatasubstringvalue.java69 String substring; in runTest() local
74 substring = child.substringData(0, 8); in runTest()
75 assertEquals("characterdataSubStringValueAssert", "Margaret", substring); in runTest()
Dhc_characterdatasubstringexceedsvalue.java70 String substring; in runTest() local
75 substring = child.substringData(9, 10); in runTest()
76 assertEquals("characterdataSubStringExceedsValueAssert", "Martin", substring); in runTest()
/libcore/benchmarks/src/benchmarks/regression/
DStringEqualsBenchmark.java156 { tmpStr1, tmpStr1.substring(1) },
158 { tmpStr2, tmpStr2.substring(2) },
160 { long1, long1.substring(3) },
162 { veryLong, veryLong.substring(1) },
164 { "hello", "hello".substring(1) }
/libcore/json/src/main/java/org/json/
DJSONTokener.java85 in = in.substring(1); in JSONTokener()
214 return new String(in.substring(start, pos - 1)); in nextString()
251 String hex = in.substring(pos, pos + 4); in readEscapeCharacter()
306 number = number.substring(2); in readLiteral()
309 number = number.substring(1); in readLiteral()
348 return in.substring(start, pos); in nextToInternal()
351 return in.substring(start); in nextToInternal()
533 String result = in.substring(pos, pos + length); in next()
/libcore/dalvik/src/main/java/dalvik/system/
DDalvikLogging.java47 ? loggerName.substring(lastPeriod + 1) in loggerNameToTag()
48 : loggerName.substring(loggerName.length() - 23); in loggerNameToTag()
/libcore/ojluni/src/main/java/sun/net/www/
DParseUtil.java164 return (byte) Integer.parseInt(s.substring(i+1,i+3),16); in unescape()
236 file = file.substring(0, lim) + file.substring(i + 3); in canonizeString()
238 file = file.substring(i + 3); in canonizeString()
243 file = file.substring(0, i) + file.substring(i + 2); in canonizeString()
249 file = file.substring(0, lim+1); in canonizeString()
251 file = file.substring(0, i); in canonizeString()
256 file = file.substring(0, file.length() -1); in canonizeString()
289 auth = auth.substring(0, auth.length() - 3); in toURI()
366 dontquote = opaquePart.substring(0,end+1); in appendSchemeSpecificPart()
367 doquote = opaquePart.substring(end+1); in appendSchemeSpecificPart()
[all …]
/libcore/ojluni/src/main/java/sun/security/x509/
DX509AttributeName.java53 prefix = name.substring(0, i); in X509AttributeName()
54 suffix = name.substring(i + 1); in X509AttributeName()
/libcore/ojluni/src/main/java/sun/util/locale/
DLocaleMatcher.java228 rangeForRegex = rangeForRegex.substring(0, index); in lookupTag()
233 rangeForRegex.substring(0, rangeForRegex.length()-2); in lookupTag()
248 ranges = ranges.substring(16); // delete unnecessary prefix in parse()
265 r = range.substring(0, index); in parse()
268 w = Double.parseDouble(range.substring(index)); in parse()
272 + range.substring(index) in parse()
346 return range.substring(0, pos) + replacement in replaceFirstSubStringMatch()
347 + range.substring(pos + substr.length()); in replaceFirstSubStringMatch()
381 r = r.substring(0, index); in getEquivalentsForLanguage()
456 + range.substring(len), in mapEquivalents()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DOldStringBufferTest.java255 testBuffer.substring(testBuffer.length() + 1); in test_substringI()
262 testBuffer.substring(-1); in test_substringI()
271 testBuffer.substring(-1, testBuffer.length()); in test_substringII()
278 testBuffer.substring(0, -1); in test_substringII()
285 testBuffer.substring(2, 1); in test_substringII()
/libcore/ojluni/src/main/java/sun/nio/fs/
DAbstractFileTypeDetector.java71 String type = s.substring(0, slash).trim().toLowerCase(Locale.ENGLISH); in parse()
74 String subtype = (semicolon < 0) ? s.substring(slash + 1) : in parse()
75 s.substring(slash + 1, semicolon); in parse()
/libcore/ojluni/src/main/java/java/text/
DCharacterIteratorFieldDelegate.java79 buffer.substring(size, start))); in formatted()
86 buffer.substring(aStart, end)); in formatted()
111 string.substring(size))); in getIterator()
/libcore/luni/src/test/java/libcore/java/io/
DOldPushbackInputStreamTest.java189 .equals(fileString.substring(50, 100))); in test_skipJ()
195 .equals(fileString.substring(75, 100))); in test_skipJ()
231 .equals(fileString.substring(0, 100))); in test_unread$B()
235 .equals(fileString.substring(0, 50))); in test_unread$B()
272 .equals(fileString.substring(0, 100))); in test_unread$BII()
276 .equals(fileString.substring(50, 100))); in test_unread$BII()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKZoneOffset.java206 String str = (i < 0 ? "-" : "+") + Integer.toString(Math.abs(i) + 100).substring(1); in test_factory_string_hours()
218 Integer.toString(Math.abs(i) + 100).substring(1) + in test_factory_string_hours_minutes_noColon()
219 Integer.toString(Math.abs(j) + 100).substring(1); in test_factory_string_hours_minutes_noColon()
237 Integer.toString(Math.abs(i) + 100).substring(1) + ":" + in test_factory_string_hours_minutes_colon()
238 Integer.toString(Math.abs(j) + 100).substring(1); in test_factory_string_hours_minutes_colon()
258 Integer.toString(Math.abs(i) + 100).substring(1) + in test_factory_string_hours_minutes_seconds_noColon()
259 Integer.toString(Math.abs(j) + 100).substring(1) + in test_factory_string_hours_minutes_seconds_noColon()
260 Integer.toString(Math.abs(k) + 100).substring(1); in test_factory_string_hours_minutes_seconds_noColon()
281 Integer.toString(Math.abs(i) + 100).substring(1) + ":" + in test_factory_string_hours_minutes_seconds_colon()
282 Integer.toString(Math.abs(j) + 100).substring(1) + ":" + in test_factory_string_hours_minutes_seconds_colon()
[all …]

12345678910