StringUtils extension

on

Properties

displayWidth int

Available on String, provided by the StringUtils extension

The number of displayed character cells that are represented by the string.
no setter

Methods

alignText({required int width, TextAlignment alignment = TextAlignment.left}) String

Available on String, provided by the StringUtils extension

stripEscapeCharacters() String

Available on String, provided by the StringUtils extension

subscript() String

Available on String, provided by the StringUtils extension

Given a string of numerals, returns their subscripted form.
superscript() String

Available on String, provided by the StringUtils extension

Given a string of numerals, returns their superscripted form.
wrapText([int wrapLength = 76]) String

Available on String, provided by the StringUtils extension

Take an input string and wrap it across multiple lines.