Indenter

class Indenter(actions: ArrayList<Indenter.Action> = arrayListOf())

Constructors

Link copied to clipboard
constructor(actions: ArrayList<Indenter.Action> = arrayListOf())

Types

Link copied to clipboard
interface Action
Link copied to clipboard
object Companion
Link copied to clipboard
class IndenterEvaluator(val markHandler: (sb: StringBuilder, line: Int, data: Any) -> Unit?, val indentEmptyLines: Boolean, val doIndent: Boolean)
Link copied to clipboard
object INDENTS

Properties

Link copied to clipboard
Link copied to clipboard
var out: String
Link copied to clipboard

Functions

Link copied to clipboard
fun _indent()
Link copied to clipboard
fun _unindent()
Link copied to clipboard
Link copied to clipboard
inline fun indent(callback: () -> Unit): Indenter
Link copied to clipboard
Link copied to clipboard
inline operator fun String.invoke(suffix: String = "", expressionSuffix: String = "", callback: () -> Unit): Indenter
Link copied to clipboard
fun line(indenter: Indenter): Indenter
fun line(str: String): Indenter
fun line(str: String?)
inline fun line(str: String, callback: () -> Unit): Indenter
inline fun line(str: String, after: String = "", after2: String = "", callback: () -> Unit): Indenter
Link copied to clipboard
Link copied to clipboard
fun mark(data: Any): Indenter
Link copied to clipboard
fun Indenter.SEPARATOR(callback: Indenter.() -> Unit)
Link copied to clipboard
open override fun toString(): String
fun toString(markHandler: (sb: StringBuilder, line: Int, data: Any) -> Unit?): String
fun toString(doIndent: Boolean = true, indentChunk: String = ""): String
fun toString(markHandler: (sb: StringBuilder, line: Int, data: Any) -> Unit?, doIndent: Boolean): String
Link copied to clipboard
inline operator fun String.unaryPlus(): Indenter
Link copied to clipboard
fun Indenter.xml(callback: XmlIndenter.() -> Unit)
inline fun String.xml(callback: () -> Unit)