- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 107 for trim (0.02 seconds)
-
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) -
src/bytes/bytes_test.go
{"Trim", "\u2C6F\u2C6F\u0250\u0250\u2C6F\u2C6F", "\u2C6F", "\u0250\u0250"}, {"Trim", "\x80test\xff", "\xff", "test"}, {"Trim", " Ġ ", " ", "Ġ"}, {"Trim", " Ġİ0", "0 ", "Ġİ"}, //empty string tests {"Trim", "abba", "", "abba"}, {"Trim", "", "123", ""}, {"Trim", "", "", ""}, {"TrimLeft", "abba", "", "abba"}, {"TrimLeft", "", "123", ""}, {"TrimLeft", "", "", ""}, {"TrimRight", "abba", "", "abba"},Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Dec 23 23:54:14 GMT 2025 - 62.9K bytes - Click Count (0) -
apache-maven/src/assembly/maven/bin/JvmConfigParser.java
/** * Process a single line: remove comments, trim whitespace, and replace placeholders. */ private static String processLine(String line, String mavenProjectBasedir) { // Remove comments int commentIndex = line.indexOf('#'); if (commentIndex >= 0) { line = line.substring(0, commentIndex); } // Trim whitespace line = line.trim();Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Dec 10 16:40:06 GMT 2025 - 6.4K 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) -
.teamcity/src/test/kotlin/PerformanceTestBuildTypeTest.kt
"extraParameters", ) + expectedRunnerParams ).joinToString(" "), performanceTest.getGradleStep("GRADLE_RUNNER").gradleParams!!.trim(), ) assertEquals(BuildStep.ExecutionMode.DEFAULT, performanceTest.getGradleStep("GRADLE_RUNNER").executionMode) } @Test fun `create correct PerformanceTest build type for Windows`() {
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Thu Sep 18 12:22:32 GMT 2025 - 8.4K bytes - Click Count (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/AbstractCheckOrUpdateContributorsInReleaseNotes.kt
@Internal protected fun getContributorsInReleaseNotes(): Set<GitHubUser> { val (_, contributorLines, _) = parseReleaseNotes() return contributorLines .map { it.trim() } .filter { it.isNotEmpty() } .onEach { check(contributorLineRegex.containsMatchIn(it)) { "Invalid contributor line: $it" } }Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Jun 24 07:54:08 GMT 2025 - 5.7K 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) -
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) -
internal/s3select/sql/funceval.go
sqlFnLower FuncName = "LOWER" sqlFnSubstring FuncName = "SUBSTRING" sqlFnTrim FuncName = "TRIM" sqlFnUpper FuncName = "UPPER" ) var ( errUnimplementedCast = errors.New("This cast not yet implemented") errNonStringTrimArg = errors.New("TRIM() received a non-string argument") errNonTimestampArg = errors.New("Expected a timestamp argument") )
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 13.2K 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)