Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for removesuffix (0.24 sec)

  1. 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 May 01 11:36:15 GMT 2024
    - Last Modified: Mon Jan 08 12:45:57 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  2. 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)
Back to top