Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 132 for unicode (0.2 sec)

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

        )
        assertNull(
          Punycode.encode(a1000MaxCodePoint.repeat(2)),
        )
      }
    
      @Test fun invalidPunycode() {
        assertNull(Punycode.decode("xn--ls8h="))
      }
    
      private fun testEncodeDecode(
        unicode: String,
        punycode: String,
      ) {
        assertEquals(unicode, Punycode.decode(punycode))
        assertEquals(punycode, Punycode.encode(unicode))
      }
    
      private fun testDecodeOnly(
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt

        }
    
      fun nonAscii(encoding: Encoding) =
        apply {
          encodings[UNICODE_2] = encoding
          encodings[UNICODE_3] = encoding
          encodings[UNICODE_4] = encoding
        }
    
      fun test(component: Component) =
        apply {
          for ((codePoint, encoding) in encodings) {
            val codePointString = Encoding.IDENTITY.encode(codePoint)
            if (encoding == Encoding.FORBIDDEN) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

     * limitations under the License.
     */
    package okhttp3.internal.idn
    
    import okio.Buffer
    import okio.ByteString.Companion.encodeUtf8
    
    /**
     * An [RFC 3492] punycode decoder for converting ASCII to Unicode domain name labels. This is
     * intended for use in Internationalized Domain Names (IDNs).
     *
     * This class contains a Kotlin implementation of the pseudocode specified by RFC 3492. It includes
    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)
  4. api/go1.7.txt

    pkg testing, type InternalExample struct, Unordered bool
    pkg unicode, const Version = "9.0.0"
    pkg unicode, var Adlam *RangeTable
    pkg unicode, var Bhaiksuki *RangeTable
    pkg unicode, var Marchen *RangeTable
    pkg unicode, var Newa *RangeTable
    pkg unicode, var Osage *RangeTable
    pkg unicode, var Prepended_Concatenation_Mark *RangeTable
    pkg unicode, var Sentence_Terminal *RangeTable
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Jun 28 15:08:11 GMT 2016
    - 13.6K bytes
    - Viewed (0)
  5. api/go1.21.txt

    pkg unicode, const Version = "15.0.0" #55079
    pkg unicode, var Cypro_Minoan *RangeTable #55079
    pkg unicode, var Kawi *RangeTable #55079
    pkg unicode, var Nag_Mundari *RangeTable #55079
    pkg unicode, var Old_Uyghur *RangeTable #55079
    pkg unicode, var Tangsa *RangeTable #55079
    pkg unicode, var Toto *RangeTable #55079
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Aug 07 09:39:17 GMT 2023
    - 25.6K bytes
    - Viewed (0)
  6. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt

     *
     * This implementation's STD3 rules are configured to `UseSTD3ASCIIRules=false`. This is
     * permissive and permits the `_` character.
     *
     * [mapping table]: https://www.unicode.org/reports/tr46/#IDNA_Mapping_Table
     * [mapping step]: https://www.unicode.org/reports/tr46/#ProcessingStepMap
     */
    class SimpleIdnaMappingTable internal constructor(
      internal val mappings: List<Mapping>,
    ) {
      /**
    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)
  7. api/next/44940.txt

    pkg unicode/utf16, func RuneLen(int32) int #44940...
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Mar 07 19:08:48 GMT 2024
    - 50 bytes
    - Viewed (0)
  8. okhttp/src/test/resources/okhttp3/internal/idn/README.md

    IDN Data
    ========
    
    In order to implement Nameprep (RFC 3491), OkHttp uses Unicode tables specified in Stringprep
    (RFC 3454). Fragments of this RFC are dumped into the files in this directory and parsed by
    `StringprepTablesReader` into a model that can be used at runtime.
    
    This format is chosen to make it easy to validate that these tables are consistent with the RFC.
    
    ```
    cd okhttp/src/test/resources/okhttp3/internal/idn/
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 618 bytes
    - Viewed (0)
  9. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/internal/IsProbablyUtf8.kt

    package okhttp3.logging.internal
    
    import java.io.EOFException
    import okio.Buffer
    
    /**
     * Returns true if the body in question probably contains human readable text. Uses a small
     * sample of code points to detect unicode control characters commonly used in binary file
     * signatures.
     */
    fun Buffer.isProbablyUtf8(): Boolean {
      try {
        val prefix = Buffer()
        val byteCount = size.coerceAtMost(64)
        copyTo(prefix, 0, byteCount)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Jan 07 16:05:34 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  10. native-image-tests/src/main/kotlin/okhttp3/RunTests.kt

        "org.junit.platform.console.tasks.TreePrintingListener",
      ).declaredConstructors.first()
        .apply {
          isAccessible = true
        }
        .newInstance(PrintWriter(System.out), colorPalette, Theme.UNICODE) as TestExecutionListener
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
Back to top