Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 127 for Scharf (0.19 sec)

  1. android/guava/src/com/google/common/escape/ArrayBasedEscaperMap.java

      // original character value.
      @VisibleForTesting
      static char[][] createReplacementArray(Map<Character, String> map) {
        checkNotNull(map); // GWT specific check (do not optimize)
        if (map.isEmpty()) {
          return EMPTY_REPLACEMENT_ARRAY;
        }
        char max = Collections.max(map.keySet());
        char[][] replacements = new char[max + 1][];
        for (Character c : map.keySet()) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 3.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/CharSequenceReaderTest.java

        // read char by char
        CharSequenceReader reader = new CharSequenceReader(charSequence);
        for (int i = 0; i < expected.length(); i++) {
          assertEquals(expected.charAt(i), reader.read());
        }
        assertFullyRead(reader);
    
        // read all to one array
        reader = new CharSequenceReader(charSequence);
        char[] buf = new char[expected.length()];
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/escape/super/com/google/common/escape/Platform.java

    final class Platform {
    
      private static final char[] CHAR_BUFFER = new char[1024];
    
      static char[] charBufferFromThreadLocal() {
        // ThreadLocal is not available to GWT, so we always reuse the same
        // instance.  It is always safe to return the same instance because
        // javascript is single-threaded, and only used by blocks that doesn't
        // involve async callbacks.
        return CHAR_BUFFER;
      }
    
      private Platform() {}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/Fingerprint2011Test.java

        }
      }
    
      public void testUtf8() {
        char[] charsA = new char[128];
        char[] charsB = new char[128];
    
        for (int i = 0; i < charsA.length; i++) {
          if (i < 100) {
            charsA[i] = 'a';
            charsB[i] = 'a';
          } else {
            // Both two-byte characters, but must be different
            charsA[i] = (char) (0x0180 + i);
            charsB[i] = (char) (0x0280 + i);
          }
        }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Dec 29 14:55:25 GMT 2021
    - 7.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

            new UnicodeEscaper() {
              // Canonical escaper method that only escapes lower case ASCII letters.
              @Override
              protected char @Nullable [] escape(int cp) {
                return ('a' <= cp && cp <= 'z') ? new char[] {Character.toUpperCase((char) cp)} : null;
              }
              // Inefficient implementation that defines all letters as escapable.
              @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/escape/EscapersTest.java

        return new CharEscaper() {
          @Override
          protected char[] escape(char c) {
            return replacementMap.get(c);
          }
        };
      }
    
      // A trivial non-optimized escaper for testing.
      static UnicodeEscaper createSimpleUnicodeEscaper(
          final ImmutableMap<Integer, char[]> replacementMap) {
        return new UnicodeEscaper() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/net/PercentEscaperTest.java

          assertThat(expected).hasMessageThat().isEqualTo(msg);
        }
      }
    
      public void testBadArguments_plusforspace() {
        // space can be a safe char if plusForSpace is false
        PercentEscaper unused = new PercentEscaper(" ", false);
    
        // space cannot be a safe char is plusForSpace is true
        String msg = "plusForSpace cannot be specified when space is a 'safe' character";
        try {
          new PercentEscaper(" ", true);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/services/MessageBuilder.java

        @Override
        MessageBuilder append(char c);
    
        /**
         * Append content to the message buffer.
         *
         * @param value the content to append
         * @param offset the index of the first {@code char} to append
         * @param len the number of {@code char}s to append
         * @return the current builder
         */
        @Nonnull
        default MessageBuilder a(char[] value, int offset, int len) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Jan 08 10:37:09 GMT 2024
    - 7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/CharSourceTester.java

        this.source = factory.createSource(data);
      }
    
      public void testOpenStream() throws IOException {
        Reader reader = source.openStream();
    
        StringWriter writer = new StringWriter();
        char[] buf = new char[64];
        int read;
        while ((read = reader.read(buf)) != -1) {
          writer.write(buf, 0, read);
        }
        reader.close();
        writer.close();
    
        assertExpectedString(writer.toString());
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 6.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/AppendableWriter.java

       */
      AppendableWriter(Appendable target) {
        this.target = checkNotNull(target);
      }
    
      /*
       * Abstract methods from Writer
       */
    
      @Override
      public void write(char[] cbuf, int off, int len) throws IOException {
        checkNotClosed();
        // It turns out that creating a new String is usually as fast, or faster
        // than wrapping cbuf in a light-weight CharSequence.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 3.4K bytes
    - Viewed (0)
Back to top