Provide unsigned string to number conversion in arbitrary base
#KT-26161
This commit is contained in:
@@ -178,3 +178,6 @@ public fun String.toLongOrNull(radix: Int): Long? {
|
||||
|
||||
return if (isNegative) result else -result
|
||||
}
|
||||
|
||||
|
||||
internal fun numberFormatError(input: String): Nothing = throw NumberFormatException("Invalid number format: '$input'")
|
||||
Reference in New Issue
Block a user