diff options
Diffstat (limited to 'src/main/kotlin/util/StringUtil.kt')
-rw-r--r-- | src/main/kotlin/util/StringUtil.kt | 4 |
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(" ") } |