k3lp Documentation
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
k3lp Documentation
text
/
org.k3lp.lib.text
/
K3StringBuilder
K3String
Builder
class
K3StringBuilder
(
source
)
A mutable sequence of characters and markers. Allows to efficiently build
K3String
objects.
Members
Constructors
K3String
Builder
Link copied to clipboard
constructor
(
)
Functions
append
Link copied to clipboard
fun
append
(
atomsToAdd
:
IntArray
)
fun
append
(
value
:
String
)
fun
append
(
k3String
:
K3String
)
append
Code
Point
Link copied to clipboard
fun
appendCodePoint
(
codePoint
:
Int
)
append
Marker
Link copied to clipboard
fun
appendMarker
(
marker
:
K3Marker
)
append
Marker
By
Id
Link copied to clipboard
fun
appendMarkerById
(
markerId
:
Int
)
clear
Link copied to clipboard
fun
clear
(
)
insert
Code
Point
Link copied to clipboard
fun
insertCodePoint
(
index
:
Int
,
codePoint
:
Int
)
insert
Marker
By
Id
Link copied to clipboard
fun
insertMarkerById
(
index
:
Int
,
markerId
:
Int
)
is
Empty
Link copied to clipboard
fun
isEmpty
(
)
:
Boolean
is
Not
Empty
Link copied to clipboard
fun
isNotEmpty
(
)
:
Boolean
prepend
Code
Point
Link copied to clipboard
fun
prependCodePoint
(
codePoint
:
Int
)
prepend
Marker
By
Id
Link copied to clipboard
fun
prependMarkerById
(
markerId
:
Int
)
reorder
Link copied to clipboard
fun
reorder
(
)
replace
Link copied to clipboard
fun
replace
(
range
:
IntRange
,
text
:
K3String
)
to
K3String
Link copied to clipboard
fun
toK3String
(
)
:
K3String
to
Text
Link copied to clipboard
fun
toText
(
)
:
String