toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-core
/
korlibs.io.util
/
Indenter
Indenter
class
Indenter
(
actions
:
ArrayList
<
Indenter.Action
>
=
arrayListOf()
)
Members
Members & Extensions
Constructors
Indenter
Link copied to clipboard
constructor
(
actions
:
ArrayList
<
Indenter.Action
>
=
arrayListOf()
)
Types
Action
Link copied to clipboard
interface
Action
Companion
Link copied to clipboard
object
Companion
Indenter
Evaluator
Link copied to clipboard
class
IndenterEvaluator
(
val
markHandler
:
(
sb
:
StringBuilder
,
line
:
Int
,
data
:
Any
)
->
Unit
?
,
val
indentEmptyLines
:
Boolean
,
val
doIndent
:
Boolean
)
INDENTS
Link copied to clipboard
object
INDENTS
Properties
indent
Empty
Lines
Link copied to clipboard
val
indentEmptyLines
:
Boolean
=
true
out
Link copied to clipboard
var
out
:
String
SEPARATOR
Link copied to clipboard
val
Indenter
.
SEPARATOR
:
Unit
Functions
_indent
Link copied to clipboard
fun
_indent
(
)
_unindent
Link copied to clipboard
fun
_unindent
(
)
EMPTY_LINE_ONCE
Link copied to clipboard
fun
Indenter
.
EMPTY_LINE_ONCE
(
)
indent
Link copied to clipboard
inline
fun
indent
(
callback
:
(
)
->
Unit
)
:
Indenter
inline
Link copied to clipboard
fun
inline
(
str
:
String
)
:
Indenter
invoke
Link copied to clipboard
inline operator
fun
String
.
invoke
(
suffix
:
String
=
""
,
expressionSuffix
:
String
=
""
,
callback
:
(
)
->
Unit
)
:
Indenter
line
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
linedeferred
Link copied to clipboard
fun
linedeferred
(
init
:
Indenter
.
(
)
->
Unit
)
:
Indenter
mark
Link copied to clipboard
fun
mark
(
data
:
Any
)
:
Indenter
SEPARATOR
Link copied to clipboard
fun
Indenter
.
SEPARATOR
(
callback
:
Indenter
.
(
)
->
Unit
)
to
String
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
unary
Plus
Link copied to clipboard
inline operator
fun
String
.
unaryPlus
(
)
:
Indenter
xml
Link copied to clipboard
fun
Indenter
.
xml
(
callback
:
XmlIndenter
.
(
)
->
Unit
)
inline
fun
String
.
xml
(
callback
:
(
)
->
Unit
)