Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 190 for substring (0.05 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilCommon.kt

        }
      }
      return startIndex
    }
    
    /** Equivalent to `string.substring(startIndex, endIndex).trim()`. */
    fun String.trimSubstring(
      startIndex: Int = 0,
      endIndex: Int = length,
    ): String {
      val start = indexOfFirstNonAsciiWhitespace(startIndex, endIndex)
      val end = indexOfLastNonAsciiWhitespace(start, endIndex)
      return substring(start, end)
    }
    
    /**
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon May 05 16:01:00 GMT 2025
    - 10.1K bytes
    - Click Count (0)
  2. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/tasks/ClasspathManifest.kt

                properties["optional"] = optional.joinForProperties()
            }
        }
    
        private
        fun FileSystemLocation.toGradleModuleName(): String = asFile.name.run { substring(0, lastIndexOf('-')) }
    
        private
        fun Iterable<String>.joinForProperties() = sorted().joinToString(",")
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Mar 28 20:26:58 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  3. regression-test/src/androidTest/java/okhttp/regression/compare/ApacheHttpClientHttp2Test.kt

          val response = client.execute(request, LoggingCallback).get()
    
          println("Protocol ${response.version}")
          println("Response ${response.code}")
          println("${response.body.bodyText.substring(0, 20)}...")
    
          Assert.assertEquals(ProtocolVersion("HTTP", 2, 0), response.version)
        }
      }
    }
    
    object LoggingCallback : FutureCallback<SimpleHttpResponse> {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.6K bytes
    - Click Count (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/profiles/activation/JdkPrefixProfileActivator.java

                }
            }
    
            boolean reverse = false;
    
            if (jdk.startsWith("!")) {
                reverse = true;
                jdk = jdk.substring(1);
            }
    
            if (getJdkVersion().startsWith(jdk)) {
                return !reverse;
            } else {
                return reverse;
            }
        }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 3K bytes
    - Click Count (0)
  5. .teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt

    ) {
        companion object {
            fun fromTestId(testId: String): Scenario {
                val dotBeforeScenarioName = testId.lastIndexOf('.')
                return Scenario(testId.substring(0, dotBeforeScenarioName), testId.substring(dotBeforeScenarioName + 1))
            }
        }
    
        override fun toString(): String = "$className.$scenario"
    }
    
    class SingleTestProjectBucket(
        val testProject: String,
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Jul 10 02:18:03 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CleanArgument.java

                    if (currentArg != null) {
                        cleaned.add(currentArg.toString());
                    }
    
                    // start building an argument here.
                    currentArg = new StringBuilder(arg.substring(1));
                    addedToBuffer = true;
                }
    
                // this has to be a separate "if" statement, to capture the case of: "-Dfoo=bar"
                if (addedToBuffer && arg.endsWith("\"")) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Mar 28 12:11:25 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  7. okhttp-java-net-cookiejar/src/main/kotlin/okhttp3/java/net/cookiejar/JavaNetCookieJar.kt

            } else {
              ""
            }
    
          // If the value is "quoted", drop the quotes.
          if (value.startsWith("\"") && value.endsWith("\"") && value.length >= 2) {
            value = value.substring(1, value.length - 1)
          }
    
          result.add(
            Cookie
              .Builder()
              .name(name)
              .value(value)
              .domain(url.host)
              .build(),
          )
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat May 10 11:15:14 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/net/HttpHeadersTest.java

        }
        List<String> parts = new ArrayList<>();
        for (String part : Splitter.on('_').split(constantName)) {
          if (!uppercaseAcronyms.contains(part)) {
            part = part.charAt(0) + Ascii.toLowerCase(part.substring(1));
          }
          parts.add(part);
        }
        return Joiner.on('-').join(parts);
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  9. .teamcity/src/main/kotlin/model/FunctionalTestBucketModel.kt

        val name = truncateName(subprojects.joinToString(","))
    
        private fun truncateName(str: String) =
            // Can't exceed Linux file name limit 255 char on TeamCity
            if (str.length > 200) {
                str.substring(0, 200) + "..."
            } else {
                str
            }
    
        override fun createFunctionalTestsFor(
            model: CIBuildModel,
            stage: Stage,
            testCoverage: TestCoverage,
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Apr 10 15:09:32 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/RepositoryUtils.java

                if (className.endsWith("RepositoryLayout")) {
                    String layout = className.substring(0, className.length() - "RepositoryLayout".length());
                    if (!layout.isEmpty()) {
                        layout = Character.toLowerCase(layout.charAt(0)) + layout.substring(1);
                        return layout;
                    }
                }
                return "";
            }
        }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Sep 04 18:33:16 GMT 2025
    - 15.8K bytes
    - Click Count (0)
Back to Top