Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for errcode (0.14 sec)

  1. android/guava-tests/test/com/google/common/collect/MapsCollectionTest.java

        @Override
        protected SortedMap<String, String> delegate() {
          return delegate;
        }
      }
    
      private static String encode(String str) {
        return BaseEncoding.base64().encode(str.getBytes(Charsets.UTF_8));
      }
    
      private static final Function<String, String> DECODE_FUNCTION =
          new Function<String, String>() {
            @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 32.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/net/UrlEscapers.java

       * interoperate with systems that require semicolons.
       *
       * <p><b>Note:</b> Unlike other escapers, URL escapers produce <a
       * href="https://url.spec.whatwg.org/#percent-encode">uppercase</a> hexadecimal sequences.
       *
       */
      public static Escaper urlFormParameterEscaper() {
        return URL_FORM_PARAMETER_ESCAPER;
      }
    
      private static final Escaper URL_FORM_PARAMETER_ESCAPER =
    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)
  3. guava-tests/test/com/google/common/io/BaseEncodingTest.java

      private static void testEncodes(BaseEncoding encoding, String decoded, String encoded) {
        assertThat(encoding.encode(decoded.getBytes(UTF_8))).isEqualTo(encoded);
      }
    
      private static void testEncodesWithOffset(
          BaseEncoding encoding, String decoded, int offset, int len, String encoded) {
        assertThat(encoding.encode(decoded.getBytes(UTF_8), offset, len)).isEqualTo(encoded);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Aug 25 16:34:08 GMT 2022
    - 24.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/LongMath.java

       * @since 20.0
       */
      @GwtIncompatible // TODO
      public static boolean isPrime(long n) {
        if (n < 2) {
          checkNonNegative("n", n);
          return false;
        }
        if (n < 66) {
          // Encode all primes less than 66 into mask without 0 and 1.
          long mask =
              (1L << (2 - 2))
                  | (1L << (3 - 2))
                  | (1L << (5 - 2))
                  | (1L << (7 - 2))
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/ReaderInputStream.java

            }
            draining = false;
            Java8Compatibility.clear(byteBuffer);
          }
    
          while (true) {
            // We call encode until there is no more input. The last call to encode will have endOfInput
            // == true. Then there is a final call to flush.
            CoderResult result;
            if (doneFlushing) {
              result = CoderResult.UNDERFLOW;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/html/HtmlEscapers.java

       * href="http://www.w3.org/TR/html4/">HTML 4.01</a>. The resulting strings can be used both in
       * attribute values and in most elements' text contents, provided that the HTML
       * document's character encoding can encode any non-ASCII code points in the input (as UTF-8 and
       * other Unicode encodings can).
       *
       * <p><b>Note:</b> This escaper only performs minimal escaping to make content structurally
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 14 22:08:54 GMT 2021
    - 3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/ByteSource.java

          return new ByteArrayByteSource(bytes, newOffset, (int) length);
        }
    
        @Override
        public String toString() {
          return "ByteSource.wrap("
              + Ascii.truncate(BaseEncoding.base16().encode(bytes, offset, length), 30, "...")
              + ")";
        }
      }
    
      private static final class EmptyByteSource extends ByteArrayByteSource {
    
        static final EmptyByteSource INSTANCE = new EmptyByteSource();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 26.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/BaseEncoding.java

            int chunk = (bytes[i++] & 0xFF) << 16 | (bytes[i++] & 0xFF) << 8 | bytes[i++] & 0xFF;
            target.append(alphabet.encode(chunk >>> 18));
            target.append(alphabet.encode((chunk >>> 12) & 0x3F));
            target.append(alphabet.encode((chunk >>> 6) & 0x3F));
            target.append(alphabet.encode(chunk & 0x3F));
          }
          if (i < off + len) {
            encodeChunkTo(target, bytes, i, off + len - i);
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Mar 15 16:33:32 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/AbstractStreamingHasher.java

        buffer.put(readBuffer);
        return this;
      }
    
      /*
       * Note: hashString(CharSequence, Charset) is intentionally not overridden.
       *
       * While intuitively, using CharsetEncoder to encode the CharSequence directly to the buffer (or
       * even to an intermediate buffer) should be considerably more efficient than potentially
       * copying the CharSequence to a String and then calling getBytes(Charset) on that String, in
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/BaseEncodingTest.java

      private static void testEncodes(BaseEncoding encoding, String decoded, String encoded) {
        assertThat(encoding.encode(decoded.getBytes(UTF_8))).isEqualTo(encoded);
      }
    
      private static void testEncodesWithOffset(
          BaseEncoding encoding, String decoded, int offset, int len, String encoded) {
        assertThat(encoding.encode(decoded.getBytes(UTF_8), offset, len)).isEqualTo(encoded);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 24.6K bytes
    - Viewed (0)
Back to top