Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for regionMatches (0.21 sec)

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

          return when {
            pattern.startsWith("**.") -> {
              // With ** empty prefixes match so exclude the dot from regionMatches().
              val suffixLength = pattern.length - 3
              val prefixLength = hostname.length - suffixLength
              hostname.regionMatches(hostname.length - suffixLength, pattern, 3, suffixLength) &&
                (prefixLength == 0 || hostname[prefixLength - 1] == '.')
            }
    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)
  2. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

       *     Otherwise, the decode failed.
       */
      private fun decodeLabel(
        string: String,
        pos: Int,
        limit: Int,
        result: Buffer,
      ): Boolean {
        if (!string.regionMatches(pos, PREFIX_STRING, 0, 4, ignoreCase = true)) {
          result.writeUtf8(string, pos, limit)
          return true
        }
    
        var pos = pos + 4 // 'xn--'.size.
    
    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)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultInheritanceAssembler.java

                }
    
                for (String module : parent.getModules()) {
                    module = module.replace('\\', '/');
    
                    if (module.regionMatches(true, module.length() - 4, ".xml", 0, 4)) {
                        module = module.substring(0, module.lastIndexOf('/') + 1);
                    }
    
                    String moduleName = module;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 13.8K bytes
    - Viewed (0)
Back to top