Companion

object Companion

Properties

Link copied to clipboard

The regular expression for printing more concise values when the limit is respected by a primitive string representation.

Link copied to clipboard
const val maxBrief: Int = 60

The maximum length of the concise primitive description. Values whose text renditions are under this character count will have internal newlines and tab clusters replaced with an individual space.

Functions

Link copied to clipboard
inline fun StringBuilder.brief(printer: StringBuilder.() -> Unit)

Execute the supplied function in the context of a new StringBuilder. If the result is shorter than maxBrief, then replace each internal cluster of newline and tabs with an individual space. Finally, write the complete result to the receiver.