Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for lastIndexOf (0.17 sec)

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

        val codePoints = mutableListOf<Int>()
    
        // consume all code points before the last delimiter (if there is one)
        //  and copy them to output, fail on any non-basic code point
        val lastDelimiter = string.lastIndexOf('-', limit)
        if (lastDelimiter >= pos) {
          while (pos < lastDelimiter) {
            when (val codePoint = string[pos++]) {
              in 'a'..'z', in 'A'..'Z', in '0'..'9', '-' -> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 03 03:04:50 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt

        }
    
        // Check that asterisk did not match across domain name labels.
        val suffixStartIndexInHostname = hostname.length - suffix.length
        if (suffixStartIndexInHostname > 0 &&
          hostname.lastIndexOf('.', suffixStartIndexInHostname - 1) != -1
        ) {
          return false // Asterisk is matching across domain name labels -- not permitted.
        }
    
        // Hostname matches pattern.
        return true
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

              val suffixLength = pattern.length - 1
              val prefixLength = hostname.length - suffixLength
              hostname.regionMatches(hostname.length - suffixLength, pattern, 1, suffixLength) &&
                hostname.lastIndexOf('.', prefixLength - 1) == -1
            }
            else -> hostname == pattern
          }
        }
    
        fun matchesCertificate(certificate: X509Certificate): Boolean {
          return when (hashAlgorithm) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.2K bytes
    - Viewed (1)
  4. okhttp/src/main/kotlin/okhttp3/Cookie.kt

          // '/foo/bar' for a URL like 'http://example.com/foo/bar/baz'. It always starts with '/'.
          if (path == null || !path.startsWith("/")) {
            val encodedPath = url.encodedPath
            val lastSlash = encodedPath.lastIndexOf('/')
            path = if (lastSlash != 0) encodedPath.substring(0, lastSlash) else "/"
          }
    
          return Cookie(
            cookieName, cookieValue, expiresAt, domain, path, secureOnly, httpOnly,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
Back to top