Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/support/ClassBytesRepository.kt

    
    private
    val slashOrDollar = Regex("[/$]")
    
    
    // visible for testing
    fun kotlinSourceNameOf(classFilePath: String): String =
        classFilePath
            .removeSuffix(classFileExtension)
            .removeSuffix("Kt")
            .replace(slashOrDollar, ".")
    
    
    // visible for testing
    fun classFilePathCandidatesFor(sourceName: String): Sequence<String> =
        sourceName.replace(".", "/").let { path ->
    Plain Text
    - Registered: Wed Feb 28 11:36:09 GMT 2024
    - Last Modified: Sat Sep 30 16:17:27 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  2. build-logic/cleanup/src/main/kotlin/gradlebuild/cleanup/Cleanup.kt

                if (!cacheDirName.startsWith(dirPrefix) || !cacheDirName.endsWith(dirSuffix)) {
                    continue
                }
                val dirVersion = cacheDirName.removePrefix(dirPrefix).removeSuffix(dirSuffix)
                if (!dirVersion.matches(dirVersionPattern)) {
                    continue
                }
    
                val cacheVersion =
                    try {
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Mon Jan 08 12:45:57 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

     * instances; this makes it clear which is which.
     */
    @JvmField
    internal val okHttpName: String =
      OkHttpClient::class.java.name.removePrefix("okhttp3.").removeSuffix("Client")
    
    @Suppress("NOTHING_TO_INLINE")
    internal inline fun ReentrantLock.assertHeld() {
      if (assertionsEnabled && !this.isHeldByCurrentThread) {
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
Back to top