Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for compareResult (0.14 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

    ): Int {
      // Do the binary searching bit.
      var low = position
      var high = limit - 1
      while (low <= high) {
        val mid = (low + high) / 2
        val compareResult = compare(mid)
        when {
          compareResult < 0 -> high = mid - 1
          compareResult > 0 -> low = mid + 1
          else -> return mid // Match!
        }
      }
    
      return -low - 1 // insertionPoint is before the first element.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Apr 02 11:39:58 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top