Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for isSurrogate (0.63 sec)

  1. android/guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

        // Build up a range of surrogate pair characters to test
        int min = Character.MIN_SUPPLEMENTARY_CODE_POINT;
        int max = Character.MAX_CODE_POINT;
        int range = max - min;
        int s1 = min + (1 * range) / 4;
        int s2 = min + (2 * range) / 4;
        int s3 = min + (3 * range) / 4;
        char[] dst = new char[12];
    
        // Put surrogate pairs at odd indices so they can be split easily
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

        // Build up a range of surrogate pair characters to test
        int min = Character.MIN_SUPPLEMENTARY_CODE_POINT;
        int max = Character.MAX_CODE_POINT;
        int range = max - min;
        int s1 = min + (1 * range) / 4;
        int s2 = min + (2 * range) / 4;
        int s3 = min + (3 * range) / 4;
        char[] dst = new char[12];
    
        // Put surrogate pairs at odd indices so they can be split easily
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java

      }
    
      /**
       * Asserts that a Unicode escaper escapes the given hi/lo surrogate pair into the expected string.
       *
       * @param escaper the non-null escaper to test
       * @param expected the expected output string
       * @param hi the high surrogate pair character
       * @param lo the low surrogate pair character
       */
      public static void assertUnicodeEscaping(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java

      }
    
      /**
       * Asserts that a Unicode escaper escapes the given hi/lo surrogate pair into the expected string.
       *
       * @param escaper the non-null escaper to test
       * @param expected the expected output string
       * @param hi the high surrogate pair character
       * @param lo the low surrogate pair character
       */
      public static void assertUnicodeEscaping(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java

        assertStringHash(0xb5a4be05, "ABCDefGHI\u0799", UTF_8);
        assertStringHash(0xfc5ba834, "毎月1日,毎週月曜日", UTF_8);
        assertStringHash(0x8a5c3699, "surrogate pair: \uD83D\uDCB0", UTF_8);
    
        assertStringHash(0, "", UTF_16LE);
        assertStringHash(0x288418e4, "k", UTF_16LE);
        assertStringHash(0x5a0cb7c3, "hell", UTF_16LE);
        assertStringHash(0xd7c31989, "hello", UTF_16LE);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/escape/Escaper.java

     * because of the possibility of splitting a surrogate pair. The only case in which it is safe to
     * escape strings and concatenate the results is if you can rule out this possibility, either by
     * splitting an existing long string into short strings adaptively around {@linkplain
     * Character#isHighSurrogate surrogate} {@linkplain Character#isLowSurrogate pairs}, or by starting
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 15:45:16 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Strings.java

        return new String(array);
      }
    
      /**
       * Returns the longest string {@code prefix} such that {@code a.toString().startsWith(prefix) &&
       * b.toString().startsWith(prefix)}, taking care not to split surrogate pairs. If {@code a} and
       * {@code b} have no common prefix, returns the empty string.
       *
       * @since 11.0
       */
      public static String commonPrefix(CharSequence a, CharSequence b) {
        checkNotNull(a);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 27 17:53:41 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/xml/XmlEscapersTest.java

            }
          } else {
            // and everything else is replaced with FFFD.
            assertEscaping(xmlEscaper, "\uFFFD", ch);
          }
        }
    
        // Test _all_ allowed characters (including surrogate values).
        for (char ch = 0x20; ch <= 0xFFFD; ch++) {
          // There are a small number of cases to consider, so just do it manually.
          if (ch == '&') {
            assertEscaping(xmlEscaper, "&amp;", ch);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Ascii.java

       * for use with it (such as all-ASCII text) and for simple debugging text. When using this method,
       * consider the following:
       *
       * <ul>
       *   <li>it may split surrogate pairs
       *   <li>it may split characters and combining characters
       *   <li>it does not consider word boundaries
       *   <li>if truncating for display to users, there are other considerations that must be taken
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 21.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/hash/HashTestUtils.java

        }
      }
    
      /**
       * This verifies that putUnencodedChars(String) and hashUnencodedChars(String) are equivalent,
       * even for funny strings composed by (possibly unmatched, and mostly illegal) surrogate
       * characters. (But doesn't test that they do the right thing - just their consistency).
       */
      private static void assertHashStringWithSurrogatesEquivalence(
          HashFunction hashFunction, Random random) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 25.6K bytes
    - Viewed (0)
Back to top