StringWrapExtensions extension
Word wrap and grapheme-safe truncation.
- on
Methods
-
truncateAtGrapheme(
int maxGraphemes) → String -
Available on String, provided by the StringWrapExtensions extension
Truncates at grapheme boundary so no emoji or extended grapheme is cut. -
wordWrap(
int columnWidth) → List< String> -
Available on String, provided by the StringWrapExtensions extension
Wraps this string atcolumnWidth, breaking at word boundaries when possible.