Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for splitSeq (0.04 sec)

  1. src/bytes/iter.go

    			} else {
    				line, s = s, nil
    			}
    			if !yield(line[:len(line):len(line)]) {
    				return
    			}
    		}
    	}
    }
    
    // splitSeq is SplitSeq or SplitAfterSeq, configured by how many
    // bytes of sep to include in the results (none or all).
    func splitSeq(s, sep []byte, sepSave int) iter.Seq[[]byte] {
    	return func(yield func([]byte) bool) {
    		if len(sep) == 0 {
    			for len(s) > 0 {
    				_, size := utf8.DecodeRune(s)
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  2. src/bytes/iter_test.go

    	for range b.N {
    		for range SplitSeq(benchInputHard, nil) {
    		}
    	}
    }
    
    func BenchmarkSplitSeqSingleByteSeparator(b *testing.B) {
    	sep := []byte("/")
    	for range b.N {
    		for range SplitSeq(benchInputHard, sep) {
    		}
    	}
    }
    
    func BenchmarkSplitSeqMultiByteSeparator(b *testing.B) {
    	sep := []byte("hello")
    	for range b.N {
    		for range SplitSeq(benchInputHard, sep) {
    		}
    	}
    }
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue May 06 02:08:23 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  3. cmd/metacache-marker.go

    		return
    	}
    	start := strings.LastIndex(s, "[")
    	o.Marker = s[:start]
    	end := strings.LastIndex(s, "]")
    	tag := strings.Trim(s[start:end], "[]")
    	tags := strings.SplitSeq(tag, ",")
    	for tag := range tags {
    		kv := strings.Split(tag, ":")
    		if len(kv) < 2 {
    			continue
    		}
    		switch kv[0] {
    		case "minio_cache":
    			if kv[1] != markerTagVersion {
    				continue
    			}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  4. cmd/leak-detect_test.go

    	// get runtime stack buffer.
    	buf := debug.Stack()
    	// runtime stack of go routines will be listed with 2 blank spaces between each of them, so split on "\n\n" .
    	for g := range strings.SplitSeq(string(buf), "\n\n") {
    		// Again split on a new line, the first line of the second half contains the info about the go routine.
    		sl := strings.SplitN(g, "\n", 2)
    		if len(sl) != 2 {
    			continue
    		}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/base/SplitterBenchmark.java

      @Param({"xxxx", "xxXx", "xXxX", "XXXX"})
      String text;
    
      private String input;
    
      private static final Splitter CHAR_SPLITTER = Splitter.on('X');
      private static final Splitter STRING_SPLITTER = Splitter.on("X");
    
      @BeforeExperiment
      @SuppressWarnings("InlineMeInliner") // String.repeat unavailable under Java 8
      void setUp() {
        input = Strings.repeat(text, length);
      }
    
      @Benchmark
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/base/SplitterBenchmark.java

      @Param({"xxxx", "xxXx", "xXxX", "XXXX"})
      String text;
    
      private String input;
    
      private static final Splitter CHAR_SPLITTER = Splitter.on('X');
      private static final Splitter STRING_SPLITTER = Splitter.on("X");
    
      @BeforeExperiment
      @SuppressWarnings("InlineMeInliner") // String.repeat unavailable under Java 8
      void setUp() {
        input = Strings.repeat(text, length);
      }
    
      @Benchmark
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/ClassPathUtil.java

    package com.google.common.util.concurrent;
    
    import static com.google.common.base.StandardSystemProperty.JAVA_CLASS_PATH;
    import static com.google.common.base.StandardSystemProperty.PATH_SEPARATOR;
    
    import com.google.common.base.Splitter;
    import com.google.common.collect.ImmutableList;
    import java.io.File;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.net.URLClassLoader;
    import org.jspecify.annotations.NullUnmarked;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/net/HttpHeadersTest.java

     */
    
    package com.google.common.net;
    
    import static com.google.common.truth.Truth.assertThat;
    
    import com.google.common.base.Ascii;
    import com.google.common.base.Joiner;
    import com.google.common.base.Splitter;
    import com.google.common.collect.ImmutableBiMap;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.ImmutableSet;
    import java.lang.reflect.Field;
    import java.util.ArrayList;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/package-info.java

     *
     * The classes in this package that are most commonly useful are:
     *
     * <h3>String utilities</h3>
     *
     * <ul>
     *   <li>{@link Ascii}
     *   <li>{@link CaseFormat}
     *   <li>{@link CharMatcher}
     *   <li>{@link Splitter}
     *   <li>{@link Strings}
     * </ul>
     *
     * <h3>Function types</h3>
     *
     * <ul>
     *   <li>{@link Converter}
     *   <li>{@link Equivalence}
     * </ul>
     *
     * <h3>Other</h3>
     *
     * <ul>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top