Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 20 for trimLen (0.05 seconds)

  1. utils/utils_test.go

    			trimLen:  5,
    			expected: []int{},
    		},
    		{
    			name:     "Zero trim length",
    			input:    []int{1, 2, 3},
    			trimLen:  0,
    			expected: []int{1, 2, 3},
    		},
    		{
    			name:     "Trim one element from end",
    			input:    []int{1, 2, 3},
    			trimLen:  1,
    			expected: []int{1, 2},
    		},
    		{
    			name:     "Empty slice",
    			input:    []int{},
    			trimLen:  2,
    			expected: []int{},
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:31:30 GMT 2026
    - 5.5K bytes
    - Click Count (0)
  2. utils/utils.go

    }
    
    // RTrimSlice Right trims the given slice by given length
    func RTrimSlice[T any](v []T, trimLen int) []T {
    	if trimLen >= len(v) { // trimLen greater than slice len means fully sliced
    		return v[:0]
    	}
    	if trimLen < 0 { // negative trimLen is ignored
    		return v[:]
    	}
    	return v[:len(v)-trimLen]
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:35:55 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  3. guava/src/com/google/common/base/Splitter.java

       *
       * @param trimmer a {@link CharMatcher} that determines whether a character should be removed from
       *     the beginning/end of a subsequence
       * @return a splitter with the desired configuration
       */
      // TODO(kevinb): throw if a trimmer was already specified!
      public Splitter trimResults(CharMatcher trimmer) {
        checkNotNull(trimmer);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 23.8K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/base/Splitter.java

       *
       * @param trimmer a {@link CharMatcher} that determines whether a character should be removed from
       *     the beginning/end of a subsequence
       * @return a splitter with the desired configuration
       */
      // TODO(kevinb): throw if a trimmer was already specified!
      public Splitter trimResults(CharMatcher trimmer) {
        checkNotNull(trimmer);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 23.8K bytes
    - Click Count (0)
  5. .teamcity/scripts/CheckRemoteProjectRef.java

                String trimmed = line.trim();
                if (trimmed.isEmpty() || trimmed.startsWith("#") || trimmed.startsWith("!")) {
                    continue;
                }
                int idx = trimmed.indexOf('=');
                if (idx < 0) {
                    continue;
                }
                String key = trimmed.substring(0, idx).trim();
                String value = trimmed.substring(idx + 1).trim();
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Jan 20 03:53:25 GMT 2026
    - 3.4K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/entity/ChatSession.java

                    // Ensure trimmed history starts with a user message, not an assistant message
                    if (start < messages.size() && ChatMessage.ROLE_ASSISTANT.equals(messages.get(start).getRole())) {
                        start = Math.max(0, start - 1);
                    }
                    final List<ChatMessage> trimmed = new ArrayList<>(messages.subList(start, messages.size()));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 07 01:53:06 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  7. .teamcity/scripts/CheckBadMerge.java

            String stdout = getStdout(new String[] {"git", "show", "--format=%P", "--no-patch", "--no-show-signature", commit});
            String trimmed = stdout.trim();
            if (trimmed.isEmpty()) {
                return Collections.emptyList();
            }
            return Arrays.stream(trimmed.split("\\s+"))
                .map(String::trim)
                .filter(s -> !s.isEmpty())
                .collect(Collectors.toList());
        }
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 30 16:25:09 GMT 2026
    - 9K bytes
    - Click Count (0)
  8. docs/en/docs/js/custom.js

                            useLines.push({
                                type: "input",
                                value: value
                            });
                        } else if (line.startsWith("// ")) {
                            saveBuffer();
                            const value = "💬 " + line.replace("// ", "").trimEnd();
                            useLines.push({
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 17:59:48 GMT 2026
    - 7.7K bytes
    - Click Count (2)
  9. docs/de/docs/tutorial/cookie-param-models.md

    Arme Cookie-Banner, wie sie sich mühen, Ihre Einwilligung zu erhalten, dass die <dfn title="Das ist ein weiterer Scherz. Beachten Sie mich nicht. Trinken Sie einen Kaffee zu Ihrem Keks. ☕">API sie ablehnen darf</dfn>. 🍪
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 07:57:30 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  10. build-logic-commons/module-identity/src/main/kotlin/gradlebuild.module-identity.gradle.kts

        override fun toString(): String = version.get()
    }
    
    group = "org.gradle"
    version = LazyProjectVersion(gradleModule.identity.version.map { it.version })
    
    /**
     * Returns the trimmed contents of the file at the given [path] after
     * marking the file as a build logic input.
     */
    fun Project.trimmedContentsOfFile(path: String): Provider<String> =
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Mar 11 22:46:35 GMT 2026
    - 5.8K bytes
    - Click Count (0)
Back to Top