- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 29 for Splitter (0.09 sec)
-
guava/src/com/google/common/base/Splitter.java
* * <p><b>Warning:</b> Splitter instances are immutable. Invoking a configuration method has no * effect on the receiving instance; you must store and use the new splitter instance it returns * instead. * * <pre>{@code * // Do NOT do this * Splitter splitter = Splitter.on('/'); * splitter.trimResults(); // does nothing! * return splitter.split("wrong / wrong / wrong"); * }</pre> *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 21:14:05 UTC 2024 - 24.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/SplitterTest.java
assertThat(letters).containsExactly("a", "b", "c").inOrder(); } @GwtIncompatible // Splitter.onPattern public void testPatternSimpleSplitWithNoDelimiter() { String simple = "a,b,c"; Iterable<String> letters = Splitter.onPattern("foo").split(simple); assertThat(letters).containsExactly("a,b,c").inOrder(); } @GwtIncompatible // Splitter.onPattern
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 29.6K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/base/SplitterBenchmark.java
/** * Microbenchmark for {@link Splitter#on} with char vs String with length == 1. * * @author Paul Lindner */ public class SplitterBenchmark { // overall size of string @Param({"1", "10", "100", "1000"}) int length; // Number of matching strings @Param({"xxxx", "xxXx", "xXxX", "XXXX"}) String text; private String input; private static final Splitter CHAR_SPLITTER = Splitter.on('X');
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 02 18:21:29 UTC 2024 - 1.7K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/base/SplitterBenchmark.java
/** * Microbenchmark for {@link Splitter#on} with char vs String with length == 1. * * @author Paul Lindner */ public class SplitterBenchmark { // overall size of string @Param({"1", "10", "100", "1000"}) int length; // Number of matching strings @Param({"xxxx", "xxXx", "xXxX", "XXXX"}) String text; private String input; private static final Splitter CHAR_SPLITTER = Splitter.on('X');
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 02 18:21:29 UTC 2024 - 1.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/net/HttpHeadersTest.java
*/ if (!field.isSynthetic() && field.getType() == String.class) { builder.add(field); } } return builder.build(); } private static final Splitter SPLITTER = Splitter.on('_'); private static final Joiner JOINER = Joiner.on('-'); private static String upperToHttpHeaderName( String constantName, ImmutableBiMap<String, String> specialCases,
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 22 21:08:08 UTC 2024 - 3.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/net/HttpHeadersTest.java
*/ if (!field.isSynthetic() && field.getType() == String.class) { builder.add(field); } } return builder.build(); } private static final Splitter SPLITTER = Splitter.on('_'); private static final Joiner JOINER = Joiner.on('-'); private static String upperToHttpHeaderName( String constantName, ImmutableBiMap<String, String> specialCases,
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 22 21:08:08 UTC 2024 - 3.9K bytes - Viewed (0) -
internal/s3select/csv/reader.go
) // Reader - CSV record reader for S3Select. type Reader struct { args *ReaderArgs readCloser io.ReadCloser // raw input buf *bufio.Reader // input to the splitter columnNames []string // names of columns nameIndexMap map[string]int64 // name to column index current [][]string // current block of results to be returned
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Feb 22 06:26:06 UTC 2024 - 8.9K bytes - Viewed (0) -
src/bufio/scan_test.go
if err != nil { t.Fatal(err) } } // Test that the line splitter handles a final line without a newline. func TestScanLineNoNewline(t *testing.T) { const text = "abcdefghijklmn\nopqrstuvwxyz" lines := []string{ "abcdefghijklmn", "opqrstuvwxyz", } testNoNewline(text, lines, t) } // Test that the line splitter handles a final line with a carriage return but no newline.
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Sep 22 16:22:42 UTC 2023 - 14.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/FilesSimplifyPathTest.java
} private void doExtensiveTest(String resourceName) throws IOException { Splitter splitter = Splitter.on(CharMatcher.whitespace()); URL url = getClass().getResource(resourceName); for (String line : Resources.readLines(url, UTF_8)) { Iterator<String> iterator = splitter.split(line).iterator(); String input = iterator.next(); String expectedOutput = iterator.next();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 10.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesSimplifyPathTest.java
} private void doExtensiveTest(String resourceName) throws IOException { Splitter splitter = Splitter.on(CharMatcher.whitespace()); URL url = getClass().getResource(resourceName); for (String line : Resources.readLines(url, UTF_8)) { Iterator<String> iterator = splitter.split(line).iterator(); String input = iterator.next(); String expectedOutput = iterator.next();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 10.9K bytes - Viewed (0)