- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for trimSubstring (0.12 sec)
-
okhttp/src/main/kotlin/okhttp3/Cookie.kt
if (pairEqualsSign == cookiePairEnd) return null val cookieName = setCookie.trimSubstring(endIndex = pairEqualsSign) if (cookieName.isEmpty() || cookieName.indexOfControlOrNonAscii() != -1) return null val cookieValue = setCookie.trimSubstring(pairEqualsSign + 1, cookiePairEnd) if (cookieValue.indexOfControlOrNonAscii() != -1) return null var expiresAt = MAX_DATE
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/internal/-UtilCommon.kt
'\t', '\n', '\u000C', '\r', ' ' -> Unit else -> return i + 1 } } return startIndex } /** Equivalent to `string.substring(startIndex, endIndex).trim()`. */ fun String.trimSubstring( startIndex: Int = 0, endIndex: Int = length, ): String { val start = indexOfFirstNonAsciiWhitespace(startIndex, endIndex) val end = indexOfLastNonAsciiWhitespace(start, endIndex)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon May 13 13:42:37 UTC 2024 - 11K bytes - Viewed (0)