stdx-kt
Toggle table of contents
2.0.0
common
Target filter
common
Switch theme
Search in API
Skip to content
stdx-kt
core
/
dev.schlaubi.stdx.core
/
limit
limit
fun
String
.
limit
(
maxLength
:
Int
,
truncate
:
String
=
"..."
)
:
String
(
source
)
Limits this string to
maxLength
and adds
truncate
at the end if the string was shortened-