- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 61 for Chars (0.04 sec)
-
android/guava/src/com/google/common/primitives/Chars.java
* href="https://github.com/google/guava/wiki/PrimitivesExplained">primitive utilities</a>. * * @author Kevin Bourrillion * @since 1.0 */ @GwtCompatible public final class Chars { private Chars() {} /** * The number of bytes required to represent a primitive {@code char} value. * * <p>Prefer {@link Character#BYTES} instead. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.2K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Chars.java
* href="https://github.com/google/guava/wiki/PrimitivesExplained">primitive utilities</a>. * * @author Kevin Bourrillion * @since 1.0 */ @GwtCompatible public final class Chars { private Chars() {} /** * The number of bytes required to represent a primitive {@code char} value. * * <p>Prefer {@link Character#BYTES} instead. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/CharsTest.java
assertThat(Chars.contains(ARRAY234, (char) 2)).isTrue(); assertThat(Chars.contains(ARRAY234, (char) 3)).isTrue(); assertThat(Chars.contains(ARRAY234, (char) 4)).isTrue(); } public void testIndexOf() { assertThat(Chars.indexOf(EMPTY, (char) 1)).isEqualTo(-1); assertThat(Chars.indexOf(ARRAY1, (char) 2)).isEqualTo(-1); assertThat(Chars.indexOf(ARRAY234, (char) 1)).isEqualTo(-1);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/StringUtil.java
if (isEmpty(name)) { return name; } final char[] chars = name.toCharArray(); if (chars.length >= 2 && Character.isUpperCase(chars[0]) && Character.isUpperCase(chars[1])) { return name; } chars[0] = Character.toLowerCase(chars[0]); return new String(chars); } /** * Capitalizes a string according to JavaBeans conventions.
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 21.9K bytes - Viewed (0) -
src/main/java/jcifs/util/SecureCredentialStorage.java
* Convert char array to byte array (UTF-8) */ private byte[] charsToBytes(char[] chars) { if (chars == null) { return null; } // Use UTF-8 encoding byte[] bytes = new byte[chars.length * 3]; // Max 3 bytes per char in UTF-8 int byteIndex = 0; for (char c : chars) { if (c < 0x80) { bytes[byteIndex++] = (byte) c;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/FessPropTest.java
return "u0020u3000"; } }; int[] chars = fessConfig.getCrawlerDocumentSpaceCharsAsArray(); assertEquals(2, chars.length); assertEquals(32, chars[0]); assertEquals(12288, chars[1]); } public void test_getCrawlerDocumentFullstopCharsAsArray() { FessProp.propMap.clear();
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 13K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/TestSmbComTransactionResponseReader.java
*/ private byte[] encodeUnicode(String s) { char[] chars = s.toCharArray(); byte[] out = new byte[chars.length * 2]; for (int i = 0; i < chars.length; i++) { out[2 * i] = (byte) (chars[i] & 0xFF); out[2 * i + 1] = (byte) ((chars[i] >> 8) & 0xFF); } return out; } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/CharMatcherTest.java
char[] chars = randomChars(rand, rand.nextInt(63) + 1); CharMatcher m = SmallCharMatcher.from(bitSet(chars), new String(chars)); checkExactMatches(m, chars); } } static void checkExactMatches(CharMatcher m, char[] chars) { Set<Character> positive = Sets.newHashSetWithExpectedSize(chars.length); for (char c : chars) { positive.add(c); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 30.3K bytes - Viewed (0) -
src/bytes/bytes.go
// code points in chars. It returns -1 if chars is empty or if there is no code // point in common. func IndexAny(s []byte, chars string) int { if chars == "" { // Avoid scanning all of s. return -1 } if len(s) == 1 { r := rune(s[0]) if r >= utf8.RuneSelf { // search utf8.RuneError. for _, r = range chars { if r == utf8.RuneError { return 0 }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Sep 03 14:04:47 UTC 2025 - 35.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/PopularWordHelperTest.java
assertTrue(result.contains("field1field2")); assertTrue(result.contains("exclude1exclude2")); // Count separators long separatorCount = result.chars().filter(ch -> ch == '\n').count(); assertEquals(4, separatorCount); } public void test_getCacheKey_nullParameters() { String seed = "test_seed"; String[] tags = null;
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 11K bytes - Viewed (0)