- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for linePreservingSubstring (0.18 sec)
-
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/LinePreservingSubstringTest.kt
// line 4 } """.replaceIndent() val begin = original.indexOf("buildscript") val end = original.indexOf("}") assertThat( original.linePreservingSubstring(begin..end), equalTo( """ buildscript { // line 4 }""".replaceIndent() ) ) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 2.9K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/CharSequenceExtensions.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.kotlin.dsl.execution internal fun CharSequence.linePreservingSubstring(range: IntRange): String = linePreservingSubstring_(range).second internal fun CharSequence.linePreservingSubstring_(range: IntRange): Pair<Int, String> {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 2.4K bytes - Viewed (0)