- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 63 for indexOf (0.18 sec)
-
okhttp/src/main/kotlin/okhttp3/HttpUrl.kt
*/ fun queryParameterName(index: Int): String { if (queryNamesAndValues == null) throw IndexOutOfBoundsException() return queryNamesAndValues[index * 2]!! } /** * Returns the value of the query parameter at `index`. For example this returns `"apple"` for * `queryParameterName(0)` on `http://host/?a=apple&b=banana`. This throws if `index` is not less * than the [query size][querySize].
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 09 12:33:05 GMT 2024 - 63.5K bytes - Viewed (1) -
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) -
okhttp/src/test/java/okhttp3/CallHandshakeTest.kt
val socketOrderedByDefaults = handshakeEnabledCipherSuites.sortedBy { ConnectionSpec.MODERN_TLS.cipherSuitesAsString!!.indexOf(it) } assertThat(handshakeEnabledCipherSuites).containsExactly( *socketOrderedByDefaults.toTypedArray(), ) } @Test fun advertisedOrderInRestricted() {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 11.2K bytes - Viewed (0) -
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) -
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) -
okhttp/src/test/java/okhttp3/OkHttpClientTest.kt
override fun get(index: Int) = Protocol.HTTP_1_1 override fun contains(element: Protocol?): Boolean { if (element == null) throw NullPointerException() return super.contains(element) } override fun indexOf(element: Protocol?): Int { if (element == null) throw NullPointerException() return super.indexOf(element) }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Mar 31 17:16:15 GMT 2024 - 13.2K bytes - Viewed (0) -
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) -
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) -
okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt
import okio.use // TODO: migrate callers to [Regex.matchAt] when that API is not experimental. internal fun Regex.matchAtPolyfill( input: CharSequence, index: Int, ): MatchResult? { val candidate = find(input, index) ?: return null if (candidate.range.first != index) return null // Didn't match where it should have. return candidate } @JvmField val EMPTY_BYTE_ARRAY: ByteArray = ByteArray(0) /** Byte order marks. */
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 11K bytes - Viewed (0) -
samples/tlssurvey/src/main/kotlin/okhttp3/survey/CipherSuiteSurvey.kt
val index = orderBy.indexOfFirst { it.matches(ianaSuite) } if (index == -1) Integer.MAX_VALUE else index } for (suiteId in sortedSuites) { print(suiteId.name) for (client in clients) { print("\t") val index = client.enabled.indexOfFirst { it.matches(suiteId) } if (index != -1) { print(index + 1) } } println()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Apr 02 01:44:15 GMT 2024 - 1.6K bytes - Viewed (0)