- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for Truncate (0.16 sec)
-
android/guava-tests/test/com/google/common/base/AsciiTest.java
assertEquals("foobar", Ascii.truncate("foobar", 6, "…")); assertEquals("foob…", Ascii.truncate("foobar", 5, "…")); assertEquals("foo", Ascii.truncate("foobar", 3, "")); assertEquals("", Ascii.truncate("", 5, "")); assertEquals("", Ascii.truncate("", 5, "...")); assertEquals("", Ascii.truncate("", 0, "")); } public void testTruncateIllegalArguments() { try { Ascii.truncate("foobar", 2, "...");
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 5.5K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Ascii.java
* the sequence will be returned as a string with no changes to the content. * * <p>Examples: * * <pre>{@code * Ascii.truncate("foobar", 7, "..."); // returns "foobar" * Ascii.truncate("foobar", 5, "..."); // returns "fo..." * }</pre> * * <p><b>Note:</b> This method <i>may</i> work with certain non-ASCII text but is not safe for use
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Jul 19 15:43:07 GMT 2021 - 21.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/AsciiTest.java
assertEquals("foobar", Ascii.truncate("foobar", 6, "…")); assertEquals("foob…", Ascii.truncate("foobar", 5, "…")); assertEquals("foo", Ascii.truncate("foobar", 3, "")); assertEquals("", Ascii.truncate("", 5, "")); assertEquals("", Ascii.truncate("", 5, "...")); assertEquals("", Ascii.truncate("", 0, "")); } public void testTruncateIllegalArguments() { try { Ascii.truncate("foobar", 2, "...");
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 5.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/TestByteSink.java
@Override public boolean wasStreamClosed() { return outputStreamClosed; } @Override public OutputStream openStream() throws IOException { outputStreamOpened = true; bytes.reset(); // truncate return new Out(); } private final class Out extends TestOutputStream { public Out() throws IOException { super(bytes, options); } @Override
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Apr 21 02:27:51 GMT 2017 - 1.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/TestByteSink.java
@Override public boolean wasStreamClosed() { return outputStreamClosed; } @Override public OutputStream openStream() throws IOException { outputStreamOpened = true; bytes.reset(); // truncate return new Out(); } private final class Out extends TestOutputStream { public Out() throws IOException { super(bytes, options); } @Override
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Sep 15 13:47:32 GMT 2016 - 1.8K bytes - Viewed (0) -
guava/src/com/google/common/base/Ascii.java
* the sequence will be returned as a string with no changes to the content. * * <p>Examples: * * <pre>{@code * Ascii.truncate("foobar", 7, "..."); // returns "foobar" * Ascii.truncate("foobar", 5, "..."); // returns "fo..." * }</pre> * * <p><b>Note:</b> This method <i>may</i> work with certain non-ASCII text but is not safe for use
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Jul 19 15:43:07 GMT 2021 - 21.6K bytes - Viewed (0) -
android/guava/src/com/google/common/io/FileWriteMode.java
import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; /** * Modes for opening a file for writing. The default when mode when none is specified is to truncate * the file before writing. * * @author Colin Decker */ @J2ktIncompatible @GwtIncompatible @ElementTypesAreNonnullByDefault public enum FileWriteMode {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 28 20:13:02 GMT 2023 - 1.1K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/UnsignedInteger.java
* bits, returns the low 32 bits of the result. * * @since 14.0 */ @J2ktIncompatible @GwtIncompatible // Does not truncate correctly public UnsignedInteger times(UnsignedInteger val) { // TODO(lowasser): make this GWT-compatible return fromIntBits(value * checkNotNull(val).value); } /**
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 23 18:45:50 GMT 2023 - 8.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableMapTest.java
public void testBuildKeepingLast_shortTable() { Builder<Integer, String> builder = ImmutableMap.builder(); Map<Integer, String> expected = new LinkedHashMap<>(); for (int i = 0; i < 1000; i++) { // Truncate to even key, so we have put(0, "0") then put(0, "1"). Half the entries are // duplicates. Integer key = i & ~1; String value = String.valueOf(i); builder.put(key, value);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Feb 27 13:27:08 GMT 2024 - 41.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/StreamsTest.java
.containsExactly("a:1", "b:2", "c:3") .inOrder(); } public void testZipInfiniteWithInfinite() { // zip is doing an infinite zip, but we truncate the result so we can actually test it // but we want the zip itself to work assertThat( Streams.zip( Stream.iterate(1, i -> i + 1).map(String::valueOf),
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 20K bytes - Viewed (0)