Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 103 for 0x10ffff (0.48 sec)

  1. okhttp/src/test/java/okhttp3/internal/idn/IdnaMappingTableTest.kt

      }
    
      @Test fun outOfBounds() {
        assertFailsWith<IllegalArgumentException> {
          table.map(-1, Buffer())
        }
        table.map(0, Buffer()) // Lowest legal code point.
        table.map(0x10ffff, Buffer()) // Highest legal code point.
        assertFailsWith<IllegalArgumentException> {
          table.map(0x110000, Buffer())
        }
      }
    
      @Test fun binarySearchEvenSizedRange() {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/net/PercentEscaper.java

          dest[4] = UPPER_HEX_DIGITS[0x8 | (cp & 0x3)];
          cp >>>= 2;
          dest[2] = UPPER_HEX_DIGITS[cp];
          return dest;
        } else if (cp <= 0x10ffff) {
          char[] dest = new char[12];
          // Four byte UTF-8 characters [cp >= 0xffff && cp <= 0x10ffff]
          // Start with "%F-%--%--%--" and fill in the blanks
          dest[0] = '%';
          dest[1] = 'F';
          dest[3] = '%';
          dest[6] = '%';
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/Utf8Test.java

              +
              // Three byte characters
              THREE_BYTE_ROUNDTRIPPABLE_CHARACTERS;
    
      // 1,048,576 [chars 0x10000L to 0x10FFFF]
      private static final long FOUR_BYTE_ROUNDTRIPPABLE_CHARACTERS = 0x10FFFF - 0x10000L + 1;
    
      // 289,571,839
      private static final long EXPECTED_FOUR_BYTE_ROUNDTRIPPABLE_COUNT =
          // All one byte characters
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/escape/ArrayBasedUnicodeEscaperTest.java

        // of the surrogate characters lie within the safe range). It is important
        // not to accidentally treat this as a sequence of safe characters.
        String unsafeInput = "\uDBFF\uDFFF"; // 0x10FFFF
        assertEquals("X", surrogateEscaper.escape(unsafeInput));
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 23:02:38 GMT 2024
    - 5K bytes
    - Viewed (1)
  5. android/guava-tests/test/com/google/common/escape/ArrayBasedUnicodeEscaperTest.java

        // of the surrogate characters lie within the safe range). It is important
        // not to accidentally treat this as a sequence of safe characters.
        String unsafeInput = "\uDBFF\uDFFF"; // 0x10FFFF
        assertEquals("X", surrogateEscaper.escape(unsafeInput));
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 23:02:38 GMT 2024
    - 5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/Utf8Test.java

              +
              // Three byte characters
              THREE_BYTE_ROUNDTRIPPABLE_CHARACTERS;
    
      // 1,048,576 [chars 0x10000L to 0x10FFFF]
      private static final long FOUR_BYTE_ROUNDTRIPPABLE_CHARACTERS = 0x10FFFF - 0x10000L + 1;
    
      // 289,571,839
      private static final long EXPECTED_FOUR_BYTE_ROUNDTRIPPABLE_COUNT =
          // All one byte characters
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java

       * kinds of common human text.
       *
       * @see MaxCodePoint#decode
       */
      @Param({"0x80", "0x90", "0x100", "0x800", "0x10000", "0x10ffff"})
      MaxCodePoint maxCodePoint;
    
      @Param({"16384"})
      int charCount;
    
      @Param({"MURMUR3_32", "MURMUR3_128", "SHA1"})
      HashFunctionEnum hashFunctionEnum;
    
      private String[] strings;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 5.3K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java

       * kinds of common human text.
       *
       * @see MaxCodePoint#decode
       */
      @Param({"0x80", "0x90", "0x100", "0x800", "0x10000", "0x10ffff"})
      MaxCodePoint maxCodePoint;
    
      @Param({"16384"})
      int charCount;
    
      @Param({"MURMUR3_32", "MURMUR3_128", "SHA1"})
      HashFunctionEnum hashFunctionEnum;
    
      private String[] strings;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 5.3K bytes
    - Viewed (0)
  9. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt

          mappings.binarySearch {
            when {
              it.sourceCodePoint1 < codePoint -> -1
              it.sourceCodePoint0 > codePoint -> 1
              else -> 0
            }
          }
    
        // Code points must be in 0..0x10ffff.
        require(index in mappings.indices) { "unexpected code point: $codePoint" }
    
        val mapping = mappings[index]
        var result = true
    
        when (mapping.type) {
          TYPE_IGNORED -> Unit
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

          val deltaN = i / (codePoints.size + 1)
          if (n > Int.MAX_VALUE - deltaN) return false // Prevent overflow.
          n += deltaN
          i %= (codePoints.size + 1)
    
          if (n > 0x10ffff) return false // Not a valid code point.
    
          codePoints.add(i, n)
    
          i++
        }
    
        for (codePoint in codePoints) {
          result.writeUtf8CodePoint(codePoint)
        }
    
        return true
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 03 03:04:50 GMT 2024
    - 8.5K bytes
    - Viewed (0)
Back to top