- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 170 for trim (0.02 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
utils/utils_test.go
input []int trimLen int expected []int }{ { name: "Trim two elements from end", input: []int{1, 2, 3, 4, 5}, trimLen: 2, expected: []int{1, 2, 3}, }, { name: "Trim entire slice", input: []int{1, 2, 3}, trimLen: 3, expected: []int{}, }, { name: "Trim length greater than slice length", input: []int{1, 2, 3}, trimLen: 5,
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Sep 19 01:49:06 GMT 2025 - 4.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt
set("b", "bb", "bbb") // Cause the cache trim job to fail. filesystem.setFaultyDelete(cacheDir / "a.0", true) taskFaker.runNextTask() // An edit should now add a job to clean up if the most recent trim failed. assertThat(cache.edit("b")).isNull() taskFaker.runNextTask() // Confirm a successful cache trim now allows edits. filesystem.setFaultyDelete(cacheDir / "a.0", false)
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Nov 01 12:18:11 GMT 2025 - 59.4K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HeadersCommon.kt
internal fun Map<String, String>.commonToHeaders(): Headers { // Make a defensive copy and clean it up. val namesAndValues = arrayOfNulls<String>(size * 2) var i = 0 for ((k, v) in this) { val name = k.trim() val value = v.trim() headersCheckName(name) headersCheckValue(value, name) namesAndValues[i] = name namesAndValues[i + 1] = value i += 2 }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon May 05 16:01:00 GMT 2025 - 5.8K bytes - Click Count (0) -
impl/maven-core/src/test/java/org/apache/maven/artifact/handler/ArtifactHandlerTest.java
"includesDependencies", "" }; int i = 0; for (String col : cols) { assertEquals(expected[i++], col.trim(), "Wrong column header"); } } else if (line.startsWith("|")) { String[] cols = line.split("\\|"); String type = trimApt(cols[1]);
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 4K bytes - Click Count (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/XmlSpecification.groovy
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 4.1K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java
File file = new File(artifactBasedir, "artifact-1.0.jar"); assertEquals("dummy", new String(Files.readAllBytes(file.toPath()), StandardCharsets.UTF_8).trim()); artifactDeployer.deploy(file, artifact, remoteRepository(), localRepository()); ArtifactRepository remoteRepository = remoteRepository();Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 2.9K bytes - Click Count (0) -
internal/s3select/sql/analysis.go
} for _, arg := range e.SFunc.ArgsList { result.combine(arg.analyze(s)) } return result case sqlFnTrim: if e.Trim.TrimChars != nil { result.combine(e.Trim.TrimChars.analyze(s)) } if e.Trim.TrimFrom != nil { result.combine(e.Trim.TrimFrom.analyze(s)) } return result case sqlFnSubstring: errVal := fmt.Errorf("Invalid argument(s) to %s", string(funcName))Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 8.6K bytes - Click Count (0) -
cmd/object-lambda-handlers.go
AccessKeyID: cred.AccessKey, }, } return eventData, nil } func fwdHeadersToS3(h http.Header, w http.ResponseWriter) { const trim = "x-amz-fwd-header-" for k, v := range h { if stringsHasPrefixFold(k, trim) { w.Header()[k[len(trim):]] = v } } } func fwdStatusToAPIError(statusCode int, resp *http.Response) *APIError { if statusCode < http.StatusBadRequest { return nil
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Jul 18 21:56:31 GMT 2025 - 6.5K bytes - Click Count (0) -
maven-tests/mvnw
while IFS="=" read -r key value; do case "${key-}" in distributionUrl) distributionUrl=$(trim "${value-}") ;; distributionSha256Sum) distributionSha256Sum=$(trim "${value-}") ;; esac done <"${0%/*}/.mvn/wrapper/maven-wrapper.properties"
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Sep 25 18:22:49 GMT 2025 - 10.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/PredicatesTest.java
new EqualsTester() .addEqualityGroup(trimEqualsFoo, Predicates.compose(equalsFoo, trim)) .addEqualityGroup(equalsFoo) .addEqualityGroup(trim) .addEqualityGroup(Predicates.compose(equalsFoo, identity)) .addEqualityGroup(Predicates.compose(equalsBar, trim)) .testEquals(); } @J2ktIncompatible @GwtIncompatible // SerializableTesterCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 32.3K bytes - Click Count (0)