- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 190 for substring (0.09 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilCommon.kt
} } return startIndex } /** Equivalent to `string.substring(startIndex, endIndex).trim()`. */ fun String.trimSubstring( startIndex: Int = 0, endIndex: Int = length, ): String { val start = indexOfFirstNonAsciiWhitespace(startIndex, endIndex) val end = indexOfLastNonAsciiWhitespace(start, endIndex) return substring(start, end) } /**
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon May 05 16:01:00 GMT 2025 - 10.1K bytes - Click Count (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/tasks/ClasspathManifest.kt
properties["optional"] = optional.joinForProperties() } } private fun FileSystemLocation.toGradleModuleName(): String = asFile.name.run { substring(0, lastIndexOf('-')) } private fun Iterable<String>.joinForProperties() = sorted().joinToString(",")
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Thu Mar 28 20:26:58 GMT 2024 - 2.4K bytes - Click Count (0) -
regression-test/src/androidTest/java/okhttp/regression/compare/ApacheHttpClientHttp2Test.kt
val response = client.execute(request, LoggingCallback).get() println("Protocol ${response.version}") println("Response ${response.code}") println("${response.body.bodyText.substring(0, 20)}...") Assert.assertEquals(ProtocolVersion("HTTP", 2, 0), response.version) } } } object LoggingCallback : FutureCallback<SimpleHttpResponse> {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.6K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/profiles/activation/JdkPrefixProfileActivator.java
} } boolean reverse = false; if (jdk.startsWith("!")) { reverse = true; jdk = jdk.substring(1); } if (getJdkVersion().startsWith(jdk)) { return !reverse; } else { return reverse; } }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 3K bytes - Click Count (0) -
.teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt
) { companion object { fun fromTestId(testId: String): Scenario { val dotBeforeScenarioName = testId.lastIndexOf('.') return Scenario(testId.substring(0, dotBeforeScenarioName), testId.substring(dotBeforeScenarioName + 1)) } } override fun toString(): String = "$className.$scenario" } class SingleTestProjectBucket( val testProject: String,Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Thu Jul 10 02:18:03 GMT 2025 - 16.6K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CleanArgument.java
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Mar 28 12:11:25 GMT 2025 - 3.4K bytes - Click Count (0) -
okhttp-java-net-cookiejar/src/main/kotlin/okhttp3/java/net/cookiejar/JavaNetCookieJar.kt
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat May 10 11:15:14 GMT 2025 - 3.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/net/HttpHeadersTest.java
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 3.9K bytes - Click Count (0) -
.teamcity/src/main/kotlin/model/FunctionalTestBucketModel.kt
val name = truncateName(subprojects.joinToString(",")) private fun truncateName(str: String) = // Can't exceed Linux file name limit 255 char on TeamCity if (str.length > 200) { str.substring(0, 200) + "..." } else { str } override fun createFunctionalTestsFor( model: CIBuildModel, stage: Stage, testCoverage: TestCoverage,Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Thu Apr 10 15:09:32 GMT 2025 - 3.4K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/RepositoryUtils.java
if (className.endsWith("RepositoryLayout")) { String layout = className.substring(0, className.length() - "RepositoryLayout".length()); if (!layout.isEmpty()) { layout = Character.toLowerCase(layout.charAt(0)) + layout.substring(1); return layout; } } return ""; } }
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Sep 04 18:33:16 GMT 2025 - 15.8K bytes - Click Count (0)