Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 349 for Split (0.43 sec)

  1. android/guava-tests/test/com/google/common/base/SplitterTest.java

        assertEquals("[]", COMMA_SPLITTER.split("").toString());
        assertEquals("[a, b, c]", COMMA_SPLITTER.split("a,b,c").toString());
        assertEquals("[yam, bam, jam, ham]", Splitter.on(", ").split("yam, bam, jam, ham").toString());
      }
    
      public void testCharacterSimpleSplitWithNoDelimiter() {
        String simple = "a,b,c";
        Iterable<String> letters = Splitter.on('.').split(simple);
        assertThat(letters).containsExactly("a,b,c").inOrder();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/SplitterTest.java

        assertEquals("[]", COMMA_SPLITTER.split("").toString());
        assertEquals("[a, b, c]", COMMA_SPLITTER.split("a,b,c").toString());
        assertEquals("[yam, bam, jam, ham]", Splitter.on(", ").split("yam, bam, jam, ham").toString());
      }
    
      public void testCharacterSimpleSplitWithNoDelimiter() {
        String simple = "a,b,c";
        Iterable<String> letters = Splitter.on('.').split(simple);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 29.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Splitter.java

       * {@link #splitToList(CharSequence)}. Java 8+ users may prefer {@link #splitToStream} instead.
       *
       * @param sequence the sequence of characters to split
       * @return an iteration over the segments split from the parameter
       */
      public Iterable<String> split(final CharSequence sequence) {
        checkNotNull(sequence);
    
        return new Iterable<String>() {
          @Override
          public Iterator<String> iterator() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 24.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Splitter.java

       * {@link #splitToList(CharSequence)}.
       *
       * @param sequence the sequence of characters to split
       * @return an iteration over the segments split from the parameter
       */
      public Iterable<String> split(final CharSequence sequence) {
        checkNotNull(sequence);
    
        return new Iterable<String>() {
          @Override
          public Iterator<String> iterator() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.7K bytes
    - Viewed (0)
  5. src/bufio/example_test.go

    	// Set the split function for the scanning operation.
    	scanner.Split(bufio.ScanWords)
    	// Count the words.
    	count := 0
    	for scanner.Scan() {
    		count++
    	}
    	if err := scanner.Err(); err != nil {
    		fmt.Fprintln(os.Stderr, "reading input:", err)
    	}
    	fmt.Printf("%d\n", count)
    	// Output: 15
    }
    
    // Use a Scanner with a custom split function (built by wrapping ScanWords) to validate
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  6. src/bufio/scan.go

    	s.maxTokenSize = max
    }
    
    // Split sets the split function for the [Scanner].
    // The default split function is [ScanLines].
    //
    // Split panics if it is called after scanning has started.
    func (s *Scanner) Split(split SplitFunc) {
    	if s.scanCalled {
    		panic("Split called after Scan")
    	}
    	s.split = split
    }
    
    // Split functions
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  7. istioctl/pkg/wait/wait_test.go

    			args:             strings.Split("--generation=2 --timeout=20ms virtual-service foo.default", " "),
    			wantException:    true,
    		},
    		{
    			execClientConfig: cannedResponseMap,
    			args:             strings.Split("--generation=1 virtual-service foo.default", " "),
    			wantException:    false,
    		},
    		{
    			execClientConfig: cannedResponseMap,
    			args:             strings.Split("--generation=1 VirtualService foo.default", " "),
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/LabelTypeHelper.java

                    final StringBuilder buf = new StringBuilder(100);
                    char split = 0;
                    for (final String path : includedPaths.split("\n")) {
                        if (split == 0) {
                            split = '|';
                        } else {
                            buf.append(split);
                        }
                        final String normalizePath = systemHelper.normalizeConfigPath(path);
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 11.7K bytes
    - Viewed (2)
  9. istioctl/pkg/dashboard/dashboard_test.go

    		{ // case 0
    			Args:           strings.Split("--browser=false", " "),
    			ExpectedRegexp: regexp.MustCompile("Access to Istio web UIs"),
    		},
    		{ // case 1
    			Args:           strings.Split("invalid --browser=false", " "),
    			ExpectedRegexp: regexp.MustCompile(`unknown dashboard "invalid"`),
    			WantException:  true,
    		},
    		{ // case 2
    			Args:           strings.Split("controlz --browser=false", " "),
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Nov 21 01:17:24 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  10. .teamcity/src/main/kotlin/model/bucket-extensions.kt

    package model
    
    import java.util.LinkedList
    import kotlin.math.min
    
    /**
     * Split a list of elements into nearly even sublist. If an element is too large, largeElementSplitFunction will be used to split the large element into several smaller pieces;
     * if some elements are too small, they will be aggregated by smallElementAggregateFunction.
     *
     * @param list the list to split, must be ordered by size desc
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Thu Nov 17 05:17:44 GMT 2022
    - 4K bytes
    - Viewed (0)
Back to top