Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 48 for Unicode (0.16 sec)

  1. 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)
  2. 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)
  3. 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)
  4. guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java

       *
       * <p>This method (dangerously) assume that the strings {@code "!! a"} and {@code "~~ z"} will
       * work for this purpose, which may cause problems for navigable maps with non-string or unicode
       * generators.
       */
      private List<String> getExtremeValues() {
        List<String> result = new ArrayList<>();
        result.add("!! a");
        result.add("!! b");
        result.add("~~ y");
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java

       *
       * <p>This method (dangerously) assume that the strings {@code "!! a"} and {@code "~~ z"} will
       * work for this purpose, which may cause problems for navigable maps with non-string or unicode
       * generators.
       */
      private List<String> getExtremeValues() {
        List<String> result = new ArrayList<>();
        result.add("!! a");
        result.add("!! b");
        result.add("~~ y");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. guava-tests/test/com/google/common/hash/HashCodeTest.java

      }
    
      public void testToString() {
        byte[] data = new byte[] {127, -128, 5, -1, 14};
        assertEquals("7f8005ff0e", HashCode.fromBytes(data).toString());
        assertEquals("7f8005ff0e", base16().lowerCase().encode(data));
      }
    
      public void testHashCode_nulls() throws Exception {
        sanityTester().testNulls();
      }
    
      public void testHashCode_equalsAndSerializable() throws Exception {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java

              shift += 24;
              len += 3;
            } else {
              int codePoint = Character.codePointAt(input, i);
              if (codePoint == c) {
                // not a valid code point; let the JDK handle invalid Unicode
                return hashBytes(input.toString().getBytes(charset));
              }
              i++;
              buffer |= codePointToFourUtf8Bytes(codePoint) << shift;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 11.9K bytes
    - Viewed (0)
Back to top