Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for indexOfLastNonAsciiWhitespace (0.12 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

          else -> return i
        }
      }
      return endIndex
    }
    
    /**
     * Decrements [endIndex] until `input[endIndex - 1]` is not ASCII whitespace. Stops at [startIndex].
     */
    internal fun String.indexOfLastNonAsciiWhitespace(
      startIndex: Int = 0,
      endIndex: Int = length,
    ): Int {
      for (i in endIndex - 1 downTo startIndex) {
        when (this[i]) {
          '\t', '\n', '\u000C', '\r', ' ' -> Unit
          else -> return i + 1
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

    import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
    import okhttp3.internal.canParseAsIpAddress
    import okhttp3.internal.delimiterOffset
    import okhttp3.internal.indexOfFirstNonAsciiWhitespace
    import okhttp3.internal.indexOfLastNonAsciiWhitespace
    import okhttp3.internal.publicsuffix.PublicSuffixDatabase
    import okhttp3.internal.readOnly
    import okhttp3.internal.toCanonicalHost
    import okhttp3.internal.url.FRAGMENT_ENCODE_SET
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 63.5K bytes
    - Viewed (0)
Back to top