aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/util/StringUtil.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-11-17 16:58:30 +0100
committerLinnea Gräf <nea@nea.moe>2024-11-17 16:58:30 +0100
commit915ab96b2444fa2e93d99a9747861b619d77f8f8 (patch)
treecbe061ce1415bffc541a26961f00b9f7bff728d5 /src/main/kotlin/util/StringUtil.kt
parent9eaa41db6aa2e83ddc250f30cc4fe4e3dcf647af (diff)
downloadFirmament-915ab96b2444fa2e93d99a9747861b619d77f8f8.tar.gz
Firmament-915ab96b2444fa2e93d99a9747861b619d77f8f8.tar.bz2
Firmament-915ab96b2444fa2e93d99a9747861b619d77f8f8.zip
refactor: Fix overlapping filenames for StringUtil
Diffstat (limited to 'src/main/kotlin/util/StringUtil.kt')
-rw-r--r--src/main/kotlin/util/StringUtil.kt4
1 files changed, 4 insertions, 0 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(" ")
}