StringExt extension
Extension on String to add conversion, formatting, and utility methods.
- on
Properties
Methods
-
calculateReadingTime(
) → int - Estimates the reading time of the text in minutes.
-
toDuration(
) → Duration -
Available on String, provided by the StringExt extension
Parses a time string (e.g."MM:SS"
or"HH:MM:SS"
) into a Duration. -
toSentenceCase(
) → String - Capitalizes the first character of the string, leaving the rest as-is.
-
toTitleCase(
) → String - Capitalizes the first letter of each word in the string.