Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for skipRestOfLine (0.17 sec)

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

            0 -> {
              // ;
              skipRestOfLine()
              IntRange(startCodePoint, startCodePoint)
            }
            1 -> {
              // '\n'
              IntRange(startCodePoint, startCodePoint)
            }
            2 -> {
              // '-'
              val endCodePoint = readHexadecimalUnsignedLong().toInt()
              skipRestOfLine()
              IntRange(startCodePoint, endCodePoint)
            }
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  2. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt

    internal const val TYPE_VALID = 6
    
    private fun BufferedSource.skipWhitespace() {
      while (!exhausted()) {
        if (buffer[0] != ' '.code.toByte()) return
        skip(1L)
      }
    }
    
    private fun BufferedSource.skipRestOfLine() {
      when (val newline = indexOf('\n'.code.toByte())) {
        -1L -> skip(buffer.size) // Exhaust this source.
        else -> skip(newline + 1)
      }
    }
    
    /**
     * Reads lines from `IdnaMappingTable.txt`.
    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)
Back to top