- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for padEnd (0.06 sec)
-
android/guava-tests/test/com/google/common/base/StringsTest.java
assertSame("", Strings.padEnd("", 0, '-')); assertSame("x", Strings.padEnd("x", 0, '-')); assertSame("x", Strings.padEnd("x", 1, '-')); assertSame("xx", Strings.padEnd("xx", 0, '-')); assertSame("xx", Strings.padEnd("xx", 2, '-')); } public void testPadEnd_somePadding() { assertEquals("-", Strings.padEnd("", 1, '-')); assertEquals("--", Strings.padEnd("", 2, '-'));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 27 17:53:41 UTC 2025 - 10.5K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Strings.java
* with as many copies of {@code padChar} as are necessary to reach that length. For example, * * <ul> * <li>{@code padEnd("4.", 5, '0')} returns {@code "4.000"} * <li>{@code padEnd("2010", 3, '!')} returns {@code "2010"} * </ul> * * <p>See {@link java.util.Formatter} for a richer set of formatting capabilities. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 27 17:53:41 UTC 2025 - 12.2K bytes - Viewed (0) -
src/main/java/jcifs/util/Hexdump.java
* * @param val the integer value to convert to hexadecimal * @param size the desired length of the resulting hex string (will be left-padded with zeros) * @return a hexadecimal string representation of the value, padded to the specified size */ public static String toHexString(final int val, final int size) { final char[] c = new char[size]; toHexChars(val, c, 0, size);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/Hexdump.java
* * @param val the integer value to convert to hexadecimal * @param size the desired length of the resulting hex string (will be left-padded with zeros) * @return a hexadecimal string representation of the value, padded to the specified size */ public static String toHexString(final int val, final int size) { final char[] c = new char[size]; toHexChars(val, c, 0, size);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.8K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2.kt
init { FLAGS[FLAG_NONE] = "" FLAGS[FLAG_END_STREAM] = "END_STREAM" val prefixFlags = intArrayOf(FLAG_END_STREAM) FLAGS[FLAG_PADDED] = "PADDED" for (prefixFlag in prefixFlags) { FLAGS[prefixFlag or FLAG_PADDED] = FLAGS[prefixFlag] + "|PADDED" } FLAGS[FLAG_END_HEADERS] = "END_HEADERS" // Same as END_PUSH_PROMISE. FLAGS[FLAG_PRIORITY] = "PRIORITY" // Same as FLAG_COMPRESSED.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java
assertTrue(result.contains("nextEntry=")); assertTrue(result.contains("action=")); assertTrue(result.contains("file=" + fileName)); // Hexdump.toHexString produces 4-character padded uppercase hex String expectedHex = String.format("%04X", action); assertTrue(result.contains("0x" + expectedHex)); } @Test @DisplayName("Test toString with empty object")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java
} public void testShort() { Sink sink = new Sink(4); sink.putShort((short) 0x0201); HashCode unused = sink.hash(); sink.assertInvariants(2); sink.assertBytes(new byte[] {1, 2, 0, 0}); // padded with zeros } public void testInt() { Sink sink = new Sink(4); sink.putInt(0x04030201); HashCode unused = sink.hash(); sink.assertInvariants(4); sink.assertBytes(new byte[] {1, 2, 3, 4});
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 8.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComNTCreateAndXTest.java
void createOptionsAddedWhenLow() { // createOptions less than 0x0001 (i.e., 0) should be padded with 0x0040 SmbComNTCreateAndX req = createRequest(0, 0); int actual = (int) getPrivateField(req, "createOptions"); assertEquals(0x0040, actual, "createOptions should be padded with 0x0040"); } @Test @DisplayName("addFlags0 combines flags correctly") void addFlags0() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java
} public void testShort() { Sink sink = new Sink(4); sink.putShort((short) 0x0201); HashCode unused = sink.hash(); sink.assertInvariants(2); sink.assertBytes(new byte[] {1, 2, 0, 0}); // padded with zeros } public void testInt() { Sink sink = new Sink(4); sink.putInt(0x04030201); HashCode unused = sink.hash(); sink.assertInvariants(4); sink.assertBytes(new byte[] {1, 2, 3, 4});
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 8.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/exception/BadPaddingRuntimeException.java
*/ package org.codelibs.core.exception; import javax.crypto.BadPaddingException; /** * Signals that this exception has been thrown when a particular padding mechanism is expected for the input data but the data is not padded properly. * @author shinsuke */ public class BadPaddingRuntimeException extends ClRuntimeException { private static final long serialVersionUID = 1L; /**
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat Jul 05 00:11:05 UTC 2025 - 1.3K bytes - Viewed (0)