Companion

object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun fromArrays(chars: CharArray, colors: Array<State>): Str
Link copied to clipboard
operator fun invoke(vararg args: Str): Str
operator fun invoke(vararg args: String): Str

operator fun invoke(raw: CharSequence, errorMode: ErrorMode = ErrorMode.Throw): Str

Creates an [fansi.Str] from a non-fansi java.lang.String or other CharSequence.

Link copied to clipboard
fun join(args: Iterable<Str>): Str
fun join(args: Iterator<Str>): Str
fun join(args: Iterable<Str>, sep: Str): Str
fun join(args: Iterable<Str>, sep: String): Str
fun join(args: Iterator<Str>, sep: String): Str
Link copied to clipboard

Shorthand constructor with ErrorMode.Sanitize

Link copied to clipboard

Shorthand constructor with ErrorMode.Strip

Link copied to clipboard

Shorthand constructor with ErrorMode.Throw