Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 234 for indexOf (0.24 sec)

  1. mockwebserver/src/main/kotlin/mockwebserver3/RecordedRequest.kt

          }
        } else {
          this.handshake = null
          this.handshakeServerNames = listOf()
        }
    
        if (requestLine.isNotEmpty()) {
          val methodEnd = requestLine.indexOf(' ')
          val pathEnd = requestLine.indexOf(' ', methodEnd + 1)
          this.method = requestLine.substring(0, methodEnd)
          var path = requestLine.substring(methodEnd + 1, pathEnd)
          if (!path.startsWith("/")) {
            path = "/"
          }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 3.8K bytes
    - Viewed (1)
  2. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/RecordedRequest.kt

            throw IllegalArgumentException(e)
          }
        } else {
          this.handshake = null
        }
    
        if (requestLine.isNotEmpty()) {
          val methodEnd = requestLine.indexOf(' ')
          val pathEnd = requestLine.indexOf(' ', methodEnd + 1)
          this.method = requestLine.substring(0, methodEnd)
          var path = requestLine.substring(methodEnd + 1, pathEnd)
          if (!path.startsWith("/")) {
            path = "/"
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.1K bytes
    - Viewed (2)
  3. okhttp/src/test/java/okhttp3/UrlComponentEncodingTesterJvm.kt

        val uriStripped = uriStrippedCodePoints.indexOf(codePointString) != -1
        if (uriStripped) {
          if (uri.toString() != component.urlString("")) {
            fail("Encoding $component $codePoint using $encoding")
          }
          return
        }
    
        // If the URI has more escaping than the HttpURL, check that the decoded values still match.
        val uriEscaped = uriEscapedCodePoints.indexOf(codePointString) != -1
        if (uriEscaped) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/platform/android/AndroidLog.kt

          // Split by line, then ensure each line can fit into Log's maximum length.
          var i = 0
          val length = logMessage.length
          while (i < length) {
            var newline = logMessage.indexOf('\n', i)
            newline = if (newline != -1) newline else length
            do {
              val end = minOf(newline, i + MAX_LOG_LENGTH)
              Log.println(logLevel, tag, logMessage.substring(i, end))
              i = end
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

       * limits.
       */
      fun encode(string: String): String? {
        var pos = 0
        val limit = string.length
        val result = Buffer()
    
        while (pos < limit) {
          var dot = string.indexOf('.', startIndex = pos)
          if (dot == -1) dot = limit
    
          if (!encodeLabel(string, pos, dot, result)) {
            // If we couldn't encode the label, give up.
            return null
          }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 03 03:04:50 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  6. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateKotlinVersions.kt

                        add(entry.value.first())
                    }
                }
                add(minimumSupported)
            }.filterNotNull().distinct().sorted()
            return latests.subList(latests.indexOf(minimumSupported), latests.size)
        }
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Apr 26 13:50:17 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/idn/StringprepReader.kt

    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)
      }
    }
    
    class MappingListCodePointMapping(
      val mappings: Map<Int, String>,
    ) : CodePointMapping {
    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)
  8. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappingTables.kt

      var index = 0
      val result = mutableListOf<Mapping>()
    
      while (index < mappings.size) {
        val mapping = mappings[index]
        val type = canonicalizeType(mapping.type)
        val mappedTo = mapping.mappedTo
    
        var unionWith: Mapping = mapping
        index++
    
        while (index < mappings.size) {
          val next = mappings[index]
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/MultipartReader.kt

         * one byte left to read.
         */
        private fun currentPartBytesRemaining(maxResult: Long): Long {
          source.require(crlfDashDashBoundary.size.toLong())
    
          return when (val delimiterIndex = source.buffer.indexOf(crlfDashDashBoundary)) {
            -1L -> minOf(maxResult, source.buffer.size - crlfDashDashBoundary.size + 1)
            else -> minOf(maxResult, delimiterIndex)
          }
        }
    
        @Throws(IOException::class)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  10. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateAgpVersions.kt

                .groupBy { it.take(3) }
                .map { (_, versions) -> versions.first() }
            latests = (latests + minimumSupported).sorted()
            latests = latests.subList(latests.indexOf(minimumSupported) + 1, latests.size)
            return latests
        }
    
        private
        fun fetchNightlyBuildId(buildListUrl: String): String =
            Jsoup.connect(buildListUrl)
                .get()
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Jun 02 09:17:07 GMT 2023
    - 5.6K bytes
    - Viewed (0)
Back to top