diff --git a/src/commonMain/kotlin/net/pearx/kasechange/CaseFormat.kt b/src/commonMain/kotlin/net/pearx/kasechange/CaseFormat.kt index cd69d7d..852027b 100644 --- a/src/commonMain/kotlin/net/pearx/kasechange/CaseFormat.kt +++ b/src/commonMain/kotlin/net/pearx/kasechange/CaseFormat.kt @@ -7,6 +7,8 @@ package net.pearx.kasechange +import net.pearx.kasechange.splitter.splitToWords + /** * An enumeration that represents a case format that can be used to join a collection of words into one string. */ diff --git a/src/commonMain/kotlin/net/pearx/kasechange/WordSplitter.kt b/src/commonMain/kotlin/net/pearx/kasechange/splitter/WordSplitter.kt similarity index 92% rename from src/commonMain/kotlin/net/pearx/kasechange/WordSplitter.kt rename to src/commonMain/kotlin/net/pearx/kasechange/splitter/WordSplitter.kt index a1c0002..57fdb54 100644 --- a/src/commonMain/kotlin/net/pearx/kasechange/WordSplitter.kt +++ b/src/commonMain/kotlin/net/pearx/kasechange/splitter/WordSplitter.kt @@ -5,7 +5,10 @@ * You can obtain one at https://mozilla.org/MPL/2.0/. */ -package net.pearx.kasechange +package net.pearx.kasechange.splitter + +import net.pearx.kasechange.isLowerCasePlatform +import net.pearx.kasechange.isUpperCasePlatform private val BOUNDARIES = arrayOf(' ', '-', '_', '.') diff --git a/src/commonTest/kotlin/net/pearx/kasechange/test/SplitToWordsTest.kt b/src/commonTest/kotlin/net/pearx/kasechange/test/SplitToWordsTest.kt index 7c4481e..f5061a7 100644 --- a/src/commonTest/kotlin/net/pearx/kasechange/test/SplitToWordsTest.kt +++ b/src/commonTest/kotlin/net/pearx/kasechange/test/SplitToWordsTest.kt @@ -7,7 +7,7 @@ package net.pearx.kasechange.test -import net.pearx.kasechange.splitToWords +import net.pearx.kasechange.splitter.splitToWords import kotlin.test.Test import kotlin.test.assertEquals