- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 139 for Chars (0.15 seconds)
-
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. */
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 24.2K bytes - Click Count (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. */
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 24.2K bytes - Click Count (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);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 25.9K bytes - Click Count (0) -
guava/src/com/google/common/io/BaseEncoding.java
} } return chars.subSequence(0, l + 1); } @Override public boolean canDecode(CharSequence chars) { checkNotNull(chars); chars = trimTrailingPadding(chars); if (!alphabet.isValidPaddingStartPosition(chars.length())) { return false; } for (int i = 0; i < chars.length(); i++) { if (!alphabet.canDecode(chars.charAt(i))) { return false;Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Oct 06 14:51:47 GMT 2025 - 41.7K bytes - Click Count (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.
Created: Sat Dec 20 08:55:33 GMT 2025 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 21.5K bytes - Click Count (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;
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 12.7K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Ascii.java
* * @since 14.0 */ public static String toLowerCase(CharSequence chars) { if (chars instanceof String) { return toLowerCase((String) chars); } char[] newChars = new char[chars.length()]; for (int i = 0; i < newChars.length; i++) { newChars[i] = toLowerCase(chars.charAt(i)); } return String.valueOf(newChars); } /**
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 21.7K bytes - Click Count (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 }
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Sep 16 16:42:15 GMT 2025 - 35.5K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/event/ExecutionEventLogger.java
this.messageBuilderFactory = messageBuilderFactory; this.terminalWidth = terminalWidth; } private static String chars(char c, int count) { return String.valueOf(c).repeat(Math.max(0, count)); } private void infoLine(char c) { infoMain(chars(c, lineLength)); } private void infoMain(String msg) { logger.info(builder().strong(msg).toString()); }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Dec 13 15:40:45 GMT 2024 - 17.5K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java
this.messageBuilderFactory = messageBuilderFactory; this.terminalWidth = terminalWidth; } private static String chars(char c, int count) { return String.valueOf(c).repeat(Math.max(0, count)); } private void infoLine(char c) { infoMain(chars(c, lineLength)); } private void infoMain(String msg) { logger.info(builder().strong(msg).toString()); }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Nov 08 08:49:11 GMT 2024 - 17.2K bytes - Click Count (0)