Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 162 for Scharf (0.22 sec)

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

        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);
      }
    
      /**
       * If the argument is an {@linkplain #isUpperCase(char) uppercase ASCII character}, returns the
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jul 19 15:43:07 GMT 2021
    - 21.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/SmallCharMatcher.java

      }
    
      static CharMatcher from(BitSet chars, String description) {
        // Compute the filter.
        long filter = 0;
        int size = chars.cardinality();
        boolean containsZero = chars.get(0);
        // Compute the hash table.
        char[] table = new char[chooseTableSize(size)];
        int mask = table.length - 1;
        for (int c = chars.nextSetBit(0); c != -1; c = chars.nextSetBit(c + 1)) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/escape/ArrayBasedCharEscaperTest.java

              private final char[] unknown = new char[] {'?'};
    
              @Override
              protected char[] escapeUnsafe(char c) {
                return unknown;
              }
            };
        EscaperAsserts.assertBasic(replacingEscaper);
    
        // Replacements are applied first regardless of whether the character is in
        // the safe range or not ('&' is a safe char while '\t' and '\n' are not).
        assertEquals(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 23:02:38 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java

        final String allMatchingChars = allMatchingChars(bitSet);
        final char[] result = new char[STRING_LENGTH];
        // Fill with matching chars.
        for (int i = 0; i < result.length; i++) {
          result[i] = allMatchingChars.charAt(random.nextInt(allMatchingChars.length()));
        }
        // Replace some of chars by non-matching.
        int remaining = (int) ((100 - percentMatching) * result.length / 100.0 + 0.5);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 16 22:49:59 GMT 2018
    - 3.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java

       *
       * @return the replacement characters, or {@code null} if no escaping was required
       */
      @Override
      @CheckForNull
      protected final char[] escape(int cp) {
        if (cp < replacementsLength) {
          char[] chars = replacements[cp];
          if (chars != null) {
            return chars;
          }
        }
        if (cp >= safeMin && cp <= safeMax) {
          return null;
        }
        return escapeUnsafe(cp);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/LineBufferTest.java

              protected void handleLine(String line, String end) {
                lines.add(line + end);
              }
            };
        char[] chars = input.toCharArray();
        int off = 0;
        while (off < chars.length) {
          int len = Math.min(chars.length, off + chunk) - off;
          lineBuf.add(chars, off, len);
          off += len;
        }
        lineBuf.finish();
        return lines;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/Utf8Test.java

          actual += expected;
        }
        assertEquals(EXPECTED_FOUR_BYTE_ROUNDTRIPPABLE_COUNT, actual);
      }
    
      private static String newString(char... chars) {
        return new String(chars);
      }
    
      private static byte[] toByteArray(int... bytes) {
        byte[] realBytes = new byte[bytes.length];
        for (int i = 0; i < bytes.length; i++) {
          realBytes[i] = (byte) bytes[i];
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/AsciiTest.java

      }
    
      public void testCharsIgnored() {
        for (char c : IGNORED.toCharArray()) {
          String str = String.valueOf(c);
          assertEquals(str, c, Ascii.toLowerCase(c));
          assertEquals(str, c, Ascii.toUpperCase(c));
          assertFalse(str, Ascii.isLowerCase(c));
          assertFalse(str, Ascii.isUpperCase(c));
        }
      }
    
      public void testCharsLower() {
        for (char c : LOWER.toCharArray()) {
          String str = String.valueOf(c);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Utf8.java

        int i = 0;
    
        // This loop optimizes for pure ASCII.
        while (i < utf16Length && sequence.charAt(i) < 0x80) {
          i++;
        }
    
        // This loop optimizes for chars less than 0x800.
        for (; i < utf16Length; i++) {
          char c = sequence.charAt(i);
          if (c < 0x800) {
            utf8Length += ((0x7f - c) >>> 31); // branch free!
          } else {
            utf8Length += encodedLengthGeneral(sequence, i);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 10 14:11:51 GMT 2023
    - 7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/net/UrlEscapers.java

      // that are considered authoritative for the behavior of that escaper.
    
      static final String URL_FORM_PARAMETER_OTHER_SAFE_CHARS = "-_.*";
    
      static final String URL_PATH_OTHER_SAFE_CHARS_LACKING_PLUS =
          "-._~" // Unreserved characters.
              + "!$'()*,;&=" // The subdelim characters (excluding '+').
              + "@:"; // The gendelim characters permitted in paths.
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 28 15:04:33 GMT 2021
    - 6.9K bytes
    - Viewed (0)
Back to top