stdx-core
1.0.1
stdx-core
/
dev.schlaubi.stdx.core
/
limit
limit
fun
String
.
limit
(
maxLength
:
Int
,
truncate
:
String
=
"..."
)
:
String
Content copied to clipboard
Limits this string to
maxLength
and adds
truncate
at the end if the string was shortened-
Sources
common source
Link copied to clipboard