MiscUtilsOnStringExtension extension
- on
Methods
-
replaceLast(
Pattern from, String replace, [int startIndex = 0]) → String -
Replaces the last occurrence of
from
withreplace
starting atstartIndex
. -
splitByLastOccurrenceOf(
String separator) → List< String> -
truncToLength(
int length) → String -
Truncates the string to the given
length
. -
withNormalizedWhitespace(
[String replace = ' ']) → String -
Replaces all whitespace characters with
replace
.