- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 73 for toUpperCase (0.06 seconds)
-
guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java
} @Benchmark int asciiStringToUpperCase(int reps) { String string = noWorkToDo ? Ascii.toUpperCase(testString) : testString; int dummy = 0; for (int i = 0; i < reps; i++) { dummy += Ascii.toUpperCase(string).length(); } return dummy; } @Benchmark int asciiCharSequenceToUpperCase(int reps) {
Created: 2025-12-26 12:43 - Last Modified: 2024-12-19 18:03 - 4.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/AsciiTest.java
assertEquals("foobar", Ascii.toLowerCase("fOobaR")); } public void testToUpperCase() { assertEquals(UPPER, Ascii.toUpperCase(LOWER)); assertSame(UPPER, Ascii.toUpperCase(UPPER)); assertEquals(IGNORED, Ascii.toUpperCase(IGNORED)); assertEquals("FOOBAR", Ascii.toUpperCase("FoOBAr")); } public void testCharsIgnored() { for (char c : IGNORED.toCharArray()) { String str = String.valueOf(c);
Created: 2025-12-26 12:43 - Last Modified: 2024-12-19 18:03 - 5.5K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java
} @Benchmark int asciiStringToUpperCase(int reps) { String string = noWorkToDo ? Ascii.toUpperCase(testString) : testString; int dummy = 0; for (int i = 0; i < reps; i++) { dummy += Ascii.toUpperCase(string).length(); } return dummy; } @Benchmark int asciiCharSequenceToUpperCase(int reps) {
Created: 2025-12-26 12:43 - Last Modified: 2024-12-19 18:03 - 4.8K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java
} accountName = auth.username; if (useUnicode) { accountName = accountName.toUpperCase(); } primaryDomain = auth.domain.toUpperCase(); } else if (cred instanceof byte[]) { blob = (byte[]) cred; } else { throw new SmbException("Unsupported credential type");Created: 2025-12-20 13:44 - Last Modified: 2025-08-14 07:14 - 7.1K bytes - Click Count (0) -
guava/src/com/google/common/base/CaseFormat.java
@Override String convert(CaseFormat format, String s) { if (format == LOWER_UNDERSCORE) { return s.replace('-', '_'); } if (format == UPPER_UNDERSCORE) { return Ascii.toUpperCase(s.replace('-', '_')); } return super.convert(format, s); } }, /** C++ variable naming convention, e.g., "lower_underscore". */ LOWER_UNDERSCORE(CharMatcher.is('_'), "_") { @OverrideCreated: 2025-12-26 12:43 - Last Modified: 2025-12-03 18:46 - 6.5K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndX.java
if (this.isUseUnicode()) { this.accountName = this.accountName.toUpperCase(); } this.primaryDomain = a.getUserDomain() != null ? a.getUserDomain().toUpperCase() : "?"; } else { this.accountName = ""; this.primaryDomain = ""; }
Created: 2025-12-20 13:44 - Last Modified: 2025-08-16 01:32 - 8.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/converter/ReadingConverterTest.java
Created: 2025-12-20 13:04 - Last Modified: 2025-09-01 13:33 - 13.5K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/NetServerEnum2Test.java
assertEquals(testDomain.toUpperCase(), writtenDomain); currentIndex += testDomain.length() + 1; // Verify lastName String writtenLastName = new String(dst, currentIndex, lastName.length(), StandardCharsets.US_ASCII); assertEquals(lastName.toUpperCase(), writtenLastName); // Verify total bytes written
Created: 2025-12-20 13:44 - Last Modified: 2025-08-14 05:31 - 7.6K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/NetServerEnum2.java
dstIndex += 2; writeInt4(serverTypes, dst, dstIndex); dstIndex += 4; dstIndex += writeString(domain.toUpperCase(), dst, dstIndex, false); if (which == 1) { dstIndex += writeString(lastName.toUpperCase(), dst, dstIndex, false); } return dstIndex - start; } @OverrideCreated: 2025-12-20 13:44 - Last Modified: 2025-08-14 07:14 - 3.6K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Ascii.java
* without modification. * * @since 14.0 */ public static String toUpperCase(CharSequence chars) { if (chars instanceof String) { return toUpperCase((String) chars); } char[] newChars = new char[chars.length()]; for (int i = 0; i < newChars.length; i++) { newChars[i] = toUpperCase(chars.charAt(i)); } return String.valueOf(newChars); } /**Created: 2025-12-26 12:43 - Last Modified: 2025-03-17 20:26 - 21.7K bytes - Click Count (0)