← Back to Kairo Docs|API Reference (Dokka)

Package-level declarations

Functions

Link copied to clipboard
fun canonicalize(subject: String): String

Normalizes an arbitrary string to lowercase Latin characters and digits. Strips diacritics, removes non-alphanumeric characters, and collapses whitespace.

Link copied to clipboard
inline fun <T> Throwable.firstCauseOf(): T?

Walks the exception cause chain and returns the first cause matching type T, or null if none match.

Link copied to clipboard
fun resource(resourceName: String): URL

Loads a classpath resource URL using Guava. Requires Guava on the runtime classpath.

Link copied to clipboard
fun slugify(subject: String, delimiter: String): String

Like canonicalize, but joins words with the given delimiter instead of spaces.