Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for isSpace (0.17 sec)

  1. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt

        // 4.
        "\n".encodeUtf8(),
      )
    
    private val optionsDot =
      Options.of(
        // 0.
        ".".encodeUtf8(),
      )
    
    private const val DELIMITER_DOT = 0
    private const val DELIMITER_SPACE = 1
    private const val DELIMITER_SEMICOLON = 2
    private const val DELIMITER_HASH = 3
    private const val DELIMITER_NEWLINE = 4
    
    private val optionsType =
      Options.of(
        // 0.
        "deviation ".encodeUtf8(),
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

        // six-per-em space
        assertThat(parse("http://h/\u2006").encodedPath).isEqualTo("/%E2%80%86")
        // figure space
        assertThat(parse("http://h/\u2007").encodedPath).isEqualTo("/%E2%80%87")
        // punctuation space
        assertThat(parse("http://h/\u2008").encodedPath).isEqualTo("/%E2%80%88")
        // thin space
        assertThat(parse("http://h/\u2009").encodedPath).isEqualTo("/%E2%80%89")
        // hair space
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  3. okhttp/src/test/resources/okhttp3/internal/idn/rfc3454.C.1.2.txt

       00A0; NO-BREAK SPACE
       1680; OGHAM SPACE MARK
       2000; EN QUAD
       2001; EM QUAD
       2002; EN SPACE
       2003; EM SPACE
       2004; THREE-PER-EM SPACE
       2005; FOUR-PER-EM SPACE
       2006; SIX-PER-EM SPACE
       2007; FIGURE SPACE
       2008; PUNCTUATION SPACE
       2009; THIN SPACE
       200A; HAIR SPACE
       200B; ZERO WIDTH SPACE
       202F; NARROW NO-BREAK SPACE
       205F; MEDIUM MATHEMATICAL SPACE
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 409 bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http/StatusLine.kt

          // H T T P / 1 . 1   2 0 0   T e m p o r a r y   R e d i r e c t
          // 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0
    
          // Parse protocol like "HTTP/1.1" followed by a space.
          val codeStart: Int
          val protocol: Protocol
          if (statusLine.startsWith("HTTP/1.")) {
            if (statusLine.length < 9 || statusLine[8] != ' ') {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  5. okhttp-logging-interceptor/src/test/java/okhttp3/logging/IsProbablyUtf8Test.kt

        assertThat(Buffer().writeUtf8("abc").isProbablyUtf8()).isTrue()
        assertThat(Buffer().writeUtf8("new\r\nlines").isProbablyUtf8()).isTrue()
        assertThat(Buffer().writeUtf8("white\t space").isProbablyUtf8()).isTrue()
        assertThat(Buffer().writeByte(0x80).isProbablyUtf8()).isTrue()
        assertThat(Buffer().writeByte(0x00).isProbablyUtf8()).isFalse()
        assertThat(Buffer().writeByte(0xc0).isProbablyUtf8()).isFalse()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt

          ','.code.toByte() -> {
            // Consume ','.
            readByte()
            commaFound = true
          }
    
          ' '.code.toByte(), '\t'.code.toByte() -> {
            readByte()
            // Consume space or tab.
          }
    
          else -> break@loop
        }
      }
      return commaFound
    }
    
    private fun Buffer.startsWith(prefix: Byte): Boolean = !exhausted() && this[0] == prefix
    
    /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/FormBodyTest.kt

      fun urlEncoding() {
        val body =
          FormBody.Builder()
            .add("a+=& b", "c+=& d")
            .add("space, the", "final frontier")
            .add("%25", "%25")
            .build()
        assertThat(body.size).isEqualTo(3)
        assertThat(body.encodedName(0)).isEqualTo("a%2B%3D%26+b")
        assertThat(body.encodedName(1)).isEqualTo("space%2C+the")
        assertThat(body.encodedName(2)).isEqualTo("%2525")
        assertThat(body.name(0)).isEqualTo("a+=& b")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  8. docs/features/caching.md

    which is designed to persist between app restarts.
    
    ```kotlin
    cache.delete()
    ```
     
    ## Pruning the Cache
    
    Pruning the entire Cache to clear space temporarily can be done using evictAll.
    
    ```kotlin
    cache.evictAll()
    ```
    
    Removing individual items can be done using the urls iterator.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 3.1K bytes
    - Viewed (0)
  9. okhttp/src/test/resources/web-platform-test-urltestdata.txt

    # Spaces should fail
    http://example\sexample.com
    
    # This should fail
    http://Goo%20\sgoo%7C|.com
    
    # U+3000 is mapped to U+0020 (space) which is disallowed
    http://GOO\u00a0\u3000goo.com
    
    # Other types of space (no-break, zero-width, zero-width-no-break) are
    # name-prepped away to nothing.
    # U+200B, U+2060, and U+FEFF, are ignored
    http://GOO\u200b\u2060\ufeffgoo.com  s:http p:/ h:googoo.com
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/FormBody.kt

                encodeSet = FORM_ENCODE_SET,
                // Plus is encoded as `%2B`, space is encoded as plus.
                plusIsSpace = false,
                charset = charset,
              )
            values +=
              value.canonicalizeWithCharset(
                encodeSet = FORM_ENCODE_SET,
                // Plus is encoded as `%2B`, space is encoded as plus.
                plusIsSpace = false,
                charset = charset,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 4.3K bytes
    - Viewed (0)
Back to top