- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for splitIncluding (0.26 sec)
-
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/resolver/CompactTree.kt
package org.gradle.kotlin.dsl.resolver import org.gradle.kotlin.dsl.execution.splitIncluding import java.io.File internal fun compactStringFor(files: Iterable<File>) = compactStringFor(files.map { it.path }, File.separatorChar) internal fun compactStringFor(paths: Iterable<String>, separator: Char) = CompactTree.of(paths.map { it.splitIncluding(separator).toList() }).toString() private
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 2.5K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/CharSequenceExtensions.kt
val lineNumber = lineCountBefore + 1 val lastNewLineIndex = prefix.lastIndexOf('\n') return lineNumber to (index - lastNewLineIndex) } internal fun CharSequence.splitIncluding(delimiter: Char) = sequence { var startIndex = 0 while (true) { val endIndex = indexOf(delimiter, startIndex) + 1 if (endIndex == 0) break yield(substring(startIndex, endIndex))
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 2.4K bytes - Viewed (0)