Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for isUpperCase (0.14 sec)

  1. android/guava/src/com/google/common/base/Ascii.java

      /**
       * Returns a copy of the input string in which all {@linkplain #isUpperCase(char) uppercase ASCII
       * characters} have been converted to lowercase. All other characters are copied without
       * modification.
       */
      public static String toLowerCase(String string) {
        int length = string.length();
        for (int i = 0; i < length; i++) {
          if (isUpperCase(string.charAt(i))) {
            char[] chars = string.toCharArray();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 02 13:50:22 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/AsciiTest.java

          assertFalse(str, Ascii.isUpperCase(c));
        }
      }
    
      public void testCharsLower() {
        for (char c : LOWER.toCharArray()) {
          String str = String.valueOf(c);
          assertTrue(str, c == Ascii.toLowerCase(c));
          assertFalse(str, c == Ascii.toUpperCase(c));
          assertTrue(str, Ascii.isLowerCase(c));
          assertFalse(str, Ascii.isUpperCase(c));
        }
      }
    
      public void testCharsUpper() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java

        }
        return dummy;
      }
    
      @Benchmark
      boolean isUpperCase(int reps) {
        // This benchmark has no concept of "noWorkToDo".
        char[] chars = testString.toCharArray();
    
        boolean dummy = false;
        for (int i = 0; i < reps; i++) {
          for (int n = 0; n < chars.length; n++) {
            dummy ^= Ascii.isUpperCase(chars[n]);
          }
        }
        return dummy;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.8K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java

        }
        return dummy;
      }
    
      @Benchmark
      boolean isUpperCase(int reps) {
        // This benchmark has no concept of "noWorkToDo".
        char[] chars = testString.toCharArray();
    
        boolean dummy = false;
        for (int i = 0; i < reps; i++) {
          for (int n = 0; n < chars.length; n++) {
            dummy ^= Ascii.isUpperCase(chars[n]);
          }
        }
        return dummy;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Ascii.java

      /**
       * Returns a copy of the input string in which all {@linkplain #isUpperCase(char) uppercase ASCII
       * characters} have been converted to lowercase. All other characters are copied without
       * modification.
       */
      public static String toLowerCase(String string) {
        int length = string.length();
        for (int i = 0; i < length; i++) {
          if (isUpperCase(string.charAt(i))) {
            char[] chars = string.toCharArray();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 02 13:50:22 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  6. 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);
        }
    
        /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/CharMatcher.java

      @Deprecated
      public static CharMatcher javaLetterOrDigit() {
        return JavaLetterOrDigit.INSTANCE;
      }
    
      /**
       * Determines whether a BMP character is upper case according to {@linkplain
       * Character#isUpperCase(char) Java's definition}.
       *
       * @deprecated Some uppercase characters are supplementary characters; see the class
       *     documentation.
       * @since 19.0 (since 1.0 as constant {@code JAVA_UPPER_CASE})
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/io/BaseEncoding.java

            if (Ascii.isLowerCase(c)) {
              return true;
            }
          }
          return false;
        }
    
        private boolean hasUpperCase() {
          for (char c : chars) {
            if (Ascii.isUpperCase(c)) {
              return true;
            }
          }
          return false;
        }
    
        Alphabet upperCase() {
          if (!hasLowerCase()) {
            return this;
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 41.8K bytes
    - Viewed (0)
Back to top