Base37

data object Base37

A helper class for base-37 encoding and decoding of strings.

Functions

Link copied to clipboard
fun decode(encoded: Long): String

Decodes a base-37 encoded long into the original string. If the input long is within the correct range, but isn't v

Link copied to clipboard
fun decodeWithCase(encoded: Long): String

Decodes a base-37 encoded long into the respective string, replacing all underscores with spaces, as well as all first letters of each individual word to begin with an uppercase letter. If the input long is within the correct range, but isn't v

Link copied to clipboard
fun encode(charSequence: CharSequence): Long

Encodes the charSequence using base-37 encoding.