Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 190 for substring (0.12 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MediaType.kt

          var s = typeSubtype.range.last + 1
          while (s < length) {
            val parameter = PARAMETER.matchAt(this, s)
            require(parameter != null) {
              "Parameter is not formatted correctly: \"${substring(s)}\" for: \"$this\""
            }
    
            val name = parameter.groups[1]?.value
            if (name == null) {
              s = parameter.range.last + 1
              continue
            }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue May 27 14:51:08 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  2. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/upgrades/UpgradedProperties.java

            if (!jApiMethod.getName().startsWith("getIs")) {
                return false;
            }
            String methodName = "get" + jApiMethod.getName().substring(5);
            return currentMethods.containsKey(AccessorKey.ofMethodWithSameSignatureButNewName(methodName, jApiMethod));
        }
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Dec 24 14:15:15 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/LegacyLocalRepositoryManager.java

                int idx = filename.indexOf('.');
                if (idx < 0) {
                    result = filename + '-' + repositoryKey;
                } else {
                    result = filename.substring(0, idx) + '-' + repositoryKey + filename.substring(idx);
                }
                return result;
            }
    
            @Override
            public void merge(org.apache.maven.repository.legacy.metadata.ArtifactMetadata metadata) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 13.1K bytes
    - Click Count (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/repository/DefaultMirrorSelector.java

                for (String repo : repos) {
                    repo = repo.trim();
                    // see if this is a negative match
                    if (repo.length() > 1 && repo.startsWith("!")) {
                        if (repo.substring(1).equals(originalId)) {
                            // explicitly exclude. Set result and stop processing.
                            result = false;
                            break;
                        }
                    }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 8K bytes
    - Click Count (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HuffmanTest.kt

    class HuffmanTest {
      @Test
      fun roundTripForRequestAndResponse() {
        val s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
        for (i in s.indices) {
          assertRoundTrip(s.substring(0, i).encodeUtf8())
        }
        val random = Random(123456789L)
        val buf = ByteArray(4096)
        random.nextBytes(buf)
        assertRoundTrip(buf.toByteString())
      }
    
      private fun assertRoundTrip(data: ByteString) {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 1.8K bytes
    - Click Count (0)
  6. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/ClassMetaDataUtil.java

            final Set<String> excludedPackages = new HashSet<>();
            for (String excludePattern : excludedPackagePatterns) {
                if (excludePattern.endsWith(".**")) {
                    String baseName = excludePattern.substring(0, excludePattern.length() - 3);
                    excludedPrefixes.add(baseName + '.');
                    excludedPackages.add(baseName);
                } else {
                    excludedPackages.add(excludePattern);
                }
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 2.4K bytes
    - Click Count (0)
  7. compat/maven-model/src/test/java/org/apache/maven/model/pom/PomMemoryAnalyzer.java

            }
        }
    
        private String getSingular(String plural) {
            if (plural.endsWith("ies")) {
                return plural.substring(0, plural.length() - 3) + "y";
            }
            if (plural.endsWith("s")) {
                return plural.substring(0, plural.length() - 1);
            }
            return plural;
        }
    
        private void recordString(String path, String value) {
            pathStats
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 13.4K bytes
    - Click Count (0)
  8. misc/chrome/gophertool/gopher.js

        }
    
        var match = commitRE.exec(t);
        if (match) {
            return "https://golang.org/change/" + match[1];
        }
    
        if (pkgRE.test(t)) {
            // TODO: make this smarter, using a list of packages + substring matches.
            // Get the list from godoc itself in JSON format?
            return "https://golang.org/pkg/" + t;
        }
    
        return null;
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Sat Jul 11 14:36:33 GMT 2015
    - 1.2K bytes
    - Click Count (0)
  9. compat/maven-compat/src/test/java/org/apache/maven/project/ClasspathArtifactResolver.java

                results.add(result);
    
                Artifact artifact = request.getArtifact();
                if ("maven-test".equals(artifact.getGroupId())) {
                    String scope = artifact.getArtifactId().substring("scope-".length());
    
                    try {
                        artifact = artifact.setFile(ProjectClasspathTestType.getFileForClasspathResource(
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  10. impl/maven-core/src/test/java/org/apache/maven/configuration/DefaultBeanConfiguratorTest.java

            BeanConfigurationValuePreprocessor preprocessor = (value, type) -> {
                if (value != null && value.startsWith("${") && value.endsWith("}")) {
                    return value.substring(2, value.length() - 1);
                }
                return value;
            };
    
            BeanConfigurationPathTranslator translator = path -> new File("base", path.getPath()).getAbsoluteFile();
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Mar 25 09:45:07 GMT 2025
    - 3.6K bytes
    - Click Count (0)
Back to Top