Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for isSurrogate (0.04 sec)

  1. android/guava-tests/test/com/google/common/base/Utf8Test.java

          MAX_LOW_SURROGATE, MAX_HIGH_SURROGATE, MIN_LOW_SURROGATE, MIN_HIGH_SURROGATE,
        };
        for (char surrogate : surrogates) {
          builder.add(newString(surrogate));
          builder.add(newString(surrogate, 'n'));
          builder.add(newString('n', surrogate));
          builder.add(newString(surrogate, surrogate));
        }
        builder.add(newString(MIN_LOW_SURROGATE, MAX_HIGH_SURROGATE));
        ILL_FORMED_STRINGS = builder.build();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/escape/UnicodeEscaper.java

       *             surrogate is returned.</b>
       *         <li><b>If the next character was a valid low surrogate, the code point value of the
       *             high/low surrogate pair is returned.</b>
       *         <li>If the next character was not a low surrogate value, then {@link
       *             IllegalArgumentException} is thrown.
       *       </ol>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 15:45:16 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/escape/UnicodeEscaper.java

       *             surrogate is returned.</b>
       *         <li><b>If the next character was a valid low surrogate, the code point value of the
       *             high/low surrogate pair is returned.</b>
       *         <li>If the next character was not a low surrogate value, then {@link
       *             IllegalArgumentException} is thrown.
       *       </ol>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 15:45:16 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/StringsTest.java

        assertEquals("abc", Strings.commonPrefix(new StringBuilder("abcdef"), "abcxyz"));
    
        // Identical valid surrogate pairs.
        assertEquals(
            "abc\uD8AB\uDCAB", Strings.commonPrefix("abc\uD8AB\uDCABdef", "abc\uD8AB\uDCABxyz"));
        // Differing valid surrogate pairs.
        assertEquals("abc", Strings.commonPrefix("abc\uD8AB\uDCABdef", "abc\uD8AB\uDCACxyz"));
        // One invalid pair.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 27 17:53:41 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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