- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for delimiterOffset (0.08 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketExtensions.kt
val header = responseHeaders.value(i) // Parse each extension. var pos = 0 while (pos < header.length) { val extensionEnd = header.delimiterOffset(',', pos) val extensionTokenEnd = header.delimiterOffset(';', pos, extensionEnd) val extensionToken = header.trimSubstring(pos, extensionTokenEnd) pos = extensionTokenEnd + 1 when {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 8.1K bytes - Viewed (0) -
okhttp-java-net-cookiejar/src/main/kotlin/okhttp3/java/net/cookiejar/JavaNetCookieJar.kt
): List<Cookie> { val result = mutableListOf<Cookie>() var pos = 0 val limit = header.length var pairEnd: Int while (pos < limit) { pairEnd = header.delimiterOffset(";,", pos, limit) val equalsSign = header.delimiterOffset('=', pos, pairEnd) val name = header.trimSubstring(pos, equalsSign) if (name.startsWith("$")) { pos = pairEnd + 1 continue }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 04:10:43 UTC 2024 - 3.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Cookie.kt
internal fun parse( currentTimeMillis: Long, url: HttpUrl, setCookie: String, ): Cookie? { val cookiePairEnd = setCookie.delimiterOffset(';') val pairEqualsSign = setCookie.delimiterOffset('=', endIndex = cookiePairEnd) if (pairEqualsSign == cookiePairEnd) return null val cookieName = setCookie.trimSubstring(endIndex = pairEqualsSign)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 04:12:05 UTC 2024 - 23.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/HttpUrl.kt
get() { val pathStart = url.indexOf('/', scheme.length + 3) val pathEnd = url.delimiterOffset("?#", pathStart, url.length) val result = mutableListOf<String>() var i = pathStart while (i < pathEnd) { i++ // Skip the '/'. val segmentEnd = url.delimiterOffset('/', i, pathEnd) result.add(url.substring(i, segmentEnd)) i = segmentEnd }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 09 12:33:05 UTC 2024 - 63.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt
return substring(start, end) } /** * Returns the index of the first character in this string that contains a character in * [delimiters]. Returns endIndex if there is no such character. */ fun String.delimiterOffset( delimiters: String, startIndex: Int = 0, endIndex: Int = length, ): Int { for (i in startIndex until endIndex) { if (this[i] in delimiters) return i } return endIndex }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon May 13 13:42:37 UTC 2024 - 11K bytes - Viewed (0)