aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/util')
-rw-r--r--src/main/kotlin/util/StringUtil.kt4
-rw-r--r--src/main/kotlin/util/stringutil.kt6
2 files changed, 4 insertions, 6 deletions
diff --git a/src/main/kotlin/util/StringUtil.kt b/src/main/kotlin/util/StringUtil.kt
index d9253cb..f080d5a 100644
--- a/src/main/kotlin/util/StringUtil.kt
+++ b/src/main/kotlin/util/StringUtil.kt
@@ -5,5 +5,9 @@ object StringUtil {
return splitToSequence(" ") // TODO: better boundaries
}
+ fun parseIntWithComma(string: String): Int {
+ return string.replace(",", "").toInt()
+ }
+
fun Iterable<String>.unwords() = joinToString(" ")
}
diff --git a/src/main/kotlin/util/stringutil.kt b/src/main/kotlin/util/stringutil.kt
deleted file mode 100644
index 56f8dbe..0000000
--- a/src/main/kotlin/util/stringutil.kt
+++ /dev/null
@@ -1,6 +0,0 @@
-
-package moe.nea.firmament.util
-
-fun parseIntWithComma(string: String): Int {
- return string.replace(",", "").toInt()
-}