stdx-kt
1.3.0
common
stdx-core
/
dev.schlaubi.stdx.core
/
limit
limit
fun
String
.
limit
(
maxLength
:
Int
,
truncate
:
String
=
"..."
)
:
String
Limits this string to
maxLength
and adds
truncate
at the end if the string was shortened-