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

getRenderWidth() int

Available on String, provided by the StringUtils extension

Calculate the render width of a string.
isFullWidthCharacter() bool

Available on String, provided by the StringUtils extension

Checks if a single character is a full-width character (occupies 2 columns). Authoritative standard: Unicode East Asian Width (EAW)
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.