Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for unicode (0.28 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/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)
  3. 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)
  4. 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)
  5. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

          .isEqualTo("http://a$dotA126/")
        assertInvalid("http://aa$dotA126/", "Invalid URL host: \"aa$dotA126\"")
      }
    
      /**
       * UTS 46 Validity Criteria: Decoded punycode must be NFC.
       *
       * https://www.unicode.org/reports/tr46/#Validity_Criteria
       */
      @Test
      fun hostnameInPunycodeNfcAndNfd() {
        // café can be NFC (é is one code point) or NFD (e plus ´ as two code points).
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/CookieTest.kt

        val unicode = "https://長.長.長崎.jp".toHttpUrl()
        assertThat(parse(unicode, "a=b; domain=長.長崎.jp")).isNotNull()
        assertThat(parse(unicode, "a=b; domain=長崎.jp")).isNull()
        val punycode = "https://xn--ue5a.xn--ue5a.xn--8ltr62k.jp".toHttpUrl()
        assertThat(parse(punycode, "a=b; domain=xn--ue5a.xn--8ltr62k.jp")).isNotNull()
        assertThat(parse(punycode, "a=b; domain=xn--8ltr62k.jp")).isNull()
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 24.3K bytes
    - Viewed (0)
  7. CHANGELOG.md

        we didn't call `Response.close()` if the coroutine was canceled before its response was
        returned.
    
     *  Upgrade: [Okio 3.9.0][okio_3_9_0].
    
     *  Upgrade: [Kotlin 1.9.23][kotlin_1_9_23].
    
     *  Upgrade: [Unicode® IDNA 15.1.0][idna_15_1_0]
    
    
    ## Version 5.0.0-alpha.12
    
    _2023-12-17_
    
    We took too long to cut this release and there's a lot of changes in it. We've been busy.
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

      vararg args: Any,
    ): String {
      return String.format(Locale.US, format, *args)
    }
    
    @Throws(IOException::class)
    internal fun BufferedSource.readBomAsCharset(default: Charset): Charset {
      return when (select(UNICODE_BOMS)) {
        0 -> UTF_8
        1 -> UTF_16BE
        2 -> UTF_16LE
        3 -> UTF_32BE
        4 -> UTF_32LE
        -1 -> default
        else -> throw AssertionError()
      }
    }
    
    internal fun checkDuration(
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

    import okhttp3.internal.toCanonicalHost
    import okhttp3.internal.url.FRAGMENT_ENCODE_SET
    import okhttp3.internal.url.FRAGMENT_ENCODE_SET_URI
    import okhttp3.internal.url.PASSWORD_ENCODE_SET
    import okhttp3.internal.url.PATH_SEGMENT_ENCODE_SET
    import okhttp3.internal.url.PATH_SEGMENT_ENCODE_SET_URI
    import okhttp3.internal.url.QUERY_COMPONENT_ENCODE_SET
    import okhttp3.internal.url.QUERY_COMPONENT_ENCODE_SET_URI
    import okhttp3.internal.url.QUERY_COMPONENT_REENCODE_SET
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  10. okhttp/src/test/resources/web-platform-test-urltestdata.txt

    # Ideographic full stop (full-width period for Chinese, etc.) should be
    # treated as a dot.
    # U+3002 is mapped to U+002E (dot)
    http://www.foo\u3002bar.com  s:http p:/ h:www.foo.bar.com
    
    # Invalid unicode characters should fail...
    # U+FDD0 is disallowed; %ef%b7%90 is U+FDD0
    http://\ufdd0zyx.com
    
    # ...This is the same as previous but escaped.
    http://%ef%b7%90zyx.com
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 14.3K bytes
    - Viewed (0)
Back to top