Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for isHighSurrogate (0.06 seconds)

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

     * 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
     * with short strings already known to be free of unpaired surrogates.
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 13 15:45:16 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  2. guava/src/com/google/common/base/Strings.java

       */
      @VisibleForTesting
      static boolean validSurrogatePairAt(CharSequence string, int index) {
        return index >= 0
            && index <= (string.length() - 2)
            && Character.isHighSurrogate(string.charAt(index))
            && Character.isLowSurrogate(string.charAt(index + 1));
      }
    
      /**
       * Returns the given {@code template} string with each occurrence of {@code "%s"} replaced with
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/base/Strings.java

       */
      @VisibleForTesting
      static boolean validSurrogatePairAt(CharSequence string, int index) {
        return index >= 0
            && index <= (string.length() - 2)
            && Character.isHighSurrogate(string.charAt(index))
            && Character.isLowSurrogate(string.charAt(index + 1));
      }
    
      /**
       * Returns the given {@code template} string with each occurrence of {@code "%s"} replaced with
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 12.2K bytes
    - Click Count (0)
  4. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java

            int startIndex = 0;
    
            for (int i = 0; i < version.length(); i++) {
                char character = version.charAt(i);
                int c = character;
                if (Character.isHighSurrogate(character)) {
                    // read the next character as a low surrogate and combine into a single int
                    try {
                        char low = version.charAt(i + 1);
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 26.4K bytes
    - Click Count (0)
Back to Top