Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 11 for Xn (0.23 seconds)

  1. okhttp/src/commonTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabaseTest.kt

        checkPublicSuffix("xn--85x722f.com.cn", "xn--85x722f.com.cn")
        checkPublicSuffix("xn--85x722f.xn--55qx5d.cn", "xn--85x722f.xn--55qx5d.cn")
        checkPublicSuffix("www.xn--85x722f.xn--55qx5d.cn", "xn--85x722f.xn--55qx5d.cn")
        checkPublicSuffix("shishi.xn--55qx5d.cn", "shishi.xn--55qx5d.cn")
        checkPublicSuffix("xn--55qx5d.cn", null)
        checkPublicSuffix("xn--85x722f.xn--fiqs8s", "xn--85x722f.xn--fiqs8s")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue May 27 22:00:49 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/CookieTest.kt

        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()
      }
    
      @Test fun hostOnly() {
        assertThat(parse(url, "a=b")!!.hostOnly).isTrue()
        assertThat(
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Nov 01 12:18:11 GMT 2025
    - 24.4K bytes
    - Click Count (0)
  3. android-test-app/src/androidTest/kotlin/okhttp/android/testapp/IdnaTest.kt

     */
    package okhttp3.android
    
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import org.junit.Assert.assertEquals
    import org.junit.Test
    
    class IdnaTest {
      @Test
      fun testHostnameFunction() {
        assertEquals("xn--n3h.net", "https://☃.net/robots.txt".toHttpUrl().host)
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Aug 03 19:38:06 GMT 2025
    - 869 bytes
    - Click Count (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/idn/Punycode.kt

     *
     * [RFC 3492]: https://datatracker.ietf.org/doc/html/rfc3492
     * [RFC 5890]: https://datatracker.ietf.org/doc/html/rfc5890
     * [UTS #46]: https://www.unicode.org/reports/tr46/
     */
    object Punycode {
      val PREFIX_STRING = "xn--"
      val PREFIX = PREFIX_STRING.encodeUtf8()
    
      private const val BASE = 36
      private const val TMIN = 1
      private const val TMAX = 26
      private const val SKEW = 38
      private const val DAMP = 700
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 8.6K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

      private static final InternetDomainName UNICODE_EXAMPLE =
          InternetDomainName.from("j\u00f8rpeland.no");
      private static final InternetDomainName PUNYCODE_EXAMPLE =
          InternetDomainName.from("xn--jrpeland-54a.no");
    
      /** The Greek letter delta, used in unicode testing. */
      private static final String DELTA = "\u0394";
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 17.8K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/net/InternetDomainNameTest.java

      private static final InternetDomainName UNICODE_EXAMPLE =
          InternetDomainName.from("j\u00f8rpeland.no");
      private static final InternetDomainName PUNYCODE_EXAMPLE =
          InternetDomainName.from("xn--jrpeland-54a.no");
    
      /** The Greek letter delta, used in unicode testing. */
      private static final String DELTA = "\u0394";
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 17.8K bytes
    - Click Count (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlTest.kt

        assertThat(parse("http://abcd").host).isEqualTo("abcd")
        assertThat(parse("http://σ").host).isEqualTo("xn--4xa")
      }
    
      @Test
      fun hostnameUppercaseCharactersConvertedToLowercase() {
        assertThat(parse("http://ABCD").host).isEqualTo("abcd")
        assertThat(parse("http://Σ").host).isEqualTo("xn--4xa")
      }
    
      @Test
      fun hostnameIgnoredCharacters() {
        // The soft hyphen (­) should be ignored.
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Aug 04 07:38:48 GMT 2025
    - 69.9K bytes
    - Click Count (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt

       *
       *  * An encoded IDN, like `xn--n3h.net`.
       *
       * | URL                   | `host()`        |
       * | :-------------------- | :-------------- |
       * | `http://android.com/` | `"android.com"` |
       * | `http://127.0.0.1/`   | `"127.0.0.1"`   |
       * | `http://[::1]/`       | `"::1"`         |
       * | `http://xn--n3h.net/` | `"xn--n3h.net"` |
       */
      @get:JvmName("host") val host: String,
      /**
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 63.5K bytes
    - Click Count (0)
  9. doc/go_spec.html

    Thus the length and capacity of a slice literal are the maximum
    element index plus one. A slice literal has the form
    </p>
    
    <pre>
    []T{x1, x2, … xn}
    </pre>
    
    <p>
    and is shorthand for a slice operation applied to an array:
    </p>
    
    <pre>
    tmp := [n]T{x1, x2, … xn}
    tmp[0 : n]
    </pre>
    
    <h4>Map literals</h4>
    
    <p>
    For map literals, each element must have a key.
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Wed Apr 01 23:39:18 GMT 2026
    - 287.8K bytes
    - Click Count (1)
  10. lib/fips140/v1.26.0.zip

    powx[i], p) } p <<= 1 if p&0x100 != 0 { p ^= poly } } } // Multiply b and c as GF(2) polynomials modulo poly func mul(b, c uint32) uint32 { i := b j := c s := uint32(0) for k := uint32(1); k < 0x100 && j != 0; k <<= 1 { // Invariant: k == 1<<n, i == b * xⁿ if j&k != 0 { // s += i in GF(2); xor in binary s ^= i j ^= k // turn off bit to end loop early } // i *= x in GF(2) modulo the polynomial i <<= 1 if i&0x100 != 0 { i ^= poly } } return s } // Test all mul inputs against bit-by-bit n² algorithm. func...
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Jan 08 17:58:32 GMT 2026
    - 660.3K bytes
    - Click Count (0)
Back to Top