Package-level declarations

Contains polyfills for functionality which is missing on certain platforms so that they can be used in a common way.

Contains polyfills for functionality which is missing on certain platforms so that they can be used in a common way.

Contains polyfills for functionality which is missing on certain platforms so that they can be used in a common way.

Properties

Link copied to clipboard
expect val KClass<*>.fullName: String

The full name of this KClass.

actual val KClass<*>.fullName: String

KClass.simpleName or object: <unknown> in case it is an anonymous object.

actual val KClass<*>.fullName: String

Returns KClass.java.name.

Link copied to clipboard

Returns the stack trace of the given Throwable as List of Strings representing the different lines.

Functions

Link copied to clipboard

Appends a line separator to this StringBuilder.

Link copied to clipboard
expect fun <T : Any> KClass<T>.cast(any: Any?): T

Casts the given any to the type of the given KClass.

actual fun <T : Any> KClass<T>.cast(any: Any?): T
actual fun <T : Any> KClass<T>.cast(any: Any?): T

Casts the given any with help of kotlin.reflect.full.cast to the specified T.

Link copied to clipboard
expect fun String.format(arg: Any, vararg otherArgs: Any): String

Formats this String using the given arg and otherArgs for replacements where a predefined Locale is used.

expect fun String.format(locale: Locale, arg: Any, vararg otherArgs: Any): String

Formats this String based on the given locale and using the given arg and otherArgs for replacements.

actual fun String.format(arg: Any, vararg otherArgs: Any): String
actual fun String.format(locale: Locale, arg: Any, vararg otherArgs: Any): String

Replaces the first %s inside this String with arg and all subsequent with otherArgs.

actual fun String.format(arg: Any, vararg otherArgs: Any): String
actual fun String.format(locale: Locale, arg: Any, vararg otherArgs: Any): String
Link copied to clipboard

Formats the given number in a floating point format.

Link copied to clipboard
expect fun <T : Any> KClass<out T>.fullName(obj: T): String

Returns the full name of this KClass.

actual fun <T : Any> KClass<out T>.fullName(obj: T): String

KClass.simpleName or object: Class/Interface in case it is an anonymous object.

actual fun <T : Any> KClass<out T>.fullName(obj: T): String

Returns KClass.java.name.