- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 190 for substring (0.08 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/StatusLine.kt
// Parse response code like "200". Always 3 digits. if (statusLine.length < codeStart + 3) { throw ProtocolException("Unexpected status line: $statusLine") } val code = statusLine.substring(codeStart, codeStart + 3).toIntOrNull() ?: throw ProtocolException( "Unexpected status line: $statusLine", ) // Parse an optional response message like "OK" or "Not Modified". If itCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.3K bytes - Click Count (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/repository/ArtifactRepositoryPolicy.java
if (cal.getTime().after(lastModified)) { checkForUpdates = true; } } else if (updatePolicy.startsWith(UPDATE_POLICY_INTERVAL)) { String s = updatePolicy.substring(UPDATE_POLICY_INTERVAL.length() + 1); int minutes = Integer.parseInt(s); Calendar cal = Calendar.getInstance(); cal.add(Calendar.MINUTE, -minutes);Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 5.9K bytes - Click Count (0) -
samples/slack/src/main/java/okhttp3/slack/SlackApi.java
return httpUrl.toString(); } @FromJson HttpUrl urlFromJson(String urlString) { if (urlString.startsWith("wss:")) urlString = "https:" + urlString.substring(4); if (urlString.startsWith("ws:")) urlString = "http:" + urlString.substring(3); return HttpUrl.get(urlString); } }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Jul 06 19:30:55 GMT 2018 - 4.4K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/PropertyProfileActivator.java
} String name = property.getName(); boolean reverseName = false; if (name != null && name.startsWith("!")) { reverseName = true; name = name.substring(1); } if (name == null || name.length() <= 0) { problems.add(new ModelProblemCollectorRequest(Severity.ERROR, Version.BASE)Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 3.8K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenPropertiesLoader.java
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jan 24 17:29:44 GMT 2025 - 6.5K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Headers.kt
when { index != -1 -> { addLenient(line.substring(0, index), line.substring(index + 1)) } line[0] == ':' -> { // Work around empty header names and header names that start with a colon (created by old // broken SPDY versions of the response cache). addLenient("", line.substring(1)) // Empty header name. } else -> {Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue May 27 14:51:25 GMT 2025 - 11.5K bytes - Click Count (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java
index = i; break; } } stringPart = new StringItem(value.substring(0, index), true); digitPart = parseItem(true, value.substring(index)); } @Override public int compareTo(Item item) { if (item == null) { // 1-rc1 < 1, 1-ga1 > 1Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 26.4K bytes - Click Count (0) -
internal/s3select/sql/stringfuncs.go
var ( errMalformedEscapeSequence = errors.New("Malformed escape sequence in LIKE clause") errInvalidTrimArg = errors.New("Trim argument is invalid - this should not happen") errInvalidSubstringIndexLen = errors.New("Substring start index or length falls outside the string") ) const ( percent rune = '%' underscore rune = '_' runeZero rune = 0 ) func evalSQLLike(text, pattern string, escape rune) (match bool, err error) {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 4.2K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/url/-Url.kt
} } else { // This character doesn't need encoding. Just copy it over. writeUtf8CodePoint(codePoint) } i += Character.charCount(codePoint) } } /** * Returns a substring of `input` on the range `[pos..limit)` with the following * transformations: * * * Tabs, newlines, form feeds and carriage returns are skipped. * * * In queries, ' ' is encoded to '+' and '+' is encoded to "%2B".Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 7.3K bytes - Click Count (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java
} restrictions.add(restriction); upperBound = restriction.getUpperBound(); process = process.substring(index + 1).trim(); if (process.startsWith(",")) { process = process.substring(1).trim(); } } if (!process.isEmpty()) { if (!restrictions.isEmpty()) {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 19K bytes - Click Count (0)