StringUtils extension
- on
Properties
- displayWidth → int
-
The number of displayed character cells that are represented by the
string.
no setter
Methods
-
alignText(
{required int width, TextAlignment alignment = TextAlignment.left}) → String -
stripEscapeCharacters(
) → String -
subscript(
) → String - Given a string of numerals, returns their subscripted form.
-
superscript(
) → String - Given a string of numerals, returns their superscripted form.
-
wrapText(
[int wrapLength = 76]) → String - Take an input string and wrap it across multiple lines.