Utils

expect object Utils
actual object Utils
actual object Utils

Functions

Link copied to clipboard
expect fun ltrim(data: String): String

Removes all whitespace from the left of given string.

actual fun ltrim(data: String): String

Removes all whitespace from the left of given string.

actual external fun ltrim(data: String): String

Removes all whitespace from the left of given string.

Link copied to clipboard
expect fun rtrim(data: String): String

Removes all whitespace from the right of given string.

actual fun rtrim(data: String): String

Removes all whitespace from the right of given string.

actual external fun rtrim(data: String): String

Removes all whitespace from the right of given string.

Link copied to clipboard
expect fun split(data: String, delimiter: String): List<String>

Splits string by given delimiter (delimiter is removed).

actual fun split(data: String, delimiter: String): List<String>

Splits a string using the provided delimiter.

actual external fun split(data: String, delimiter: String): List<String>

Splits a string using the provided delimiter.

Link copied to clipboard
expect fun trim(data: String): String

Removes all trailing whitespace.

actual fun trim(data: String): String

Removes all trailing whitespace.

actual external fun trim(data: String): String

Removes all trailing whitespace.