Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for percentDecode (0.1 sec)

  1. okhttp/src/main/kotlin/okhttp3/FormBody.kt

      fun size(): Int = size
    
      fun encodedName(index: Int): String = encodedNames[index]
    
      fun name(index: Int): String = encodedName(index).percentDecode(plusIsSpace = true)
    
      fun encodedValue(index: Int): String = encodedValues[index]
    
      fun value(index: Int): String = encodedValue(index).percentDecode(plusIsSpace = true)
    
      override fun contentType(): MediaType = CONTENT_TYPE
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/url/-Url.kt

        encodeSet = encodeSet,
        alreadyEncoded = alreadyEncoded,
        strict = strict,
        plusIsSpace = plusIsSpace,
        unicodeAllowed = unicodeAllowed,
      )
    }
    
    internal fun String.percentDecode(
      pos: Int = 0,
      limit: Int = length,
      plusIsSpace: Boolean = false,
    ): String {
      for (i in pos until limit) {
        val c = this[i]
        if (c == '%' || c == '+' && plusIsSpace) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top