- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for portString (0.05 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt
input: String, pos: Int, limit: Int, ): Int = try { // Canonicalize the port string to skip '\n' etc. val portString = input.canonicalize(pos = pos, limit = limit, encodeSet = "") val i = portString.toInt() if (i in 1..65535) i else -1 } catch (_: NumberFormatException) { -1 // Invalid port. } } companion object {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 63.5K bytes - Click Count (0)