east_asian_width library
Get East Asian Width from a character.
Enums
- EastAsianWidth
- East Asian Width representation
Extensions
- EastAsianWidthUtils on String
- Extension for using East Asian Width functions directly on String
Functions
-
characterLength(
String character) → int - Returns an integer value indicating the length of the character in terms of display width.
-
eastAsianWidth(
String character) → EastAsianWidth -
Returns an EastAsianWidth
enum
indicating the input's East Asian width. -
length(
String string) → int - Returns the length of the input string in terms of the number of characters.
-
slice(
String text, [int? start, int? end]) → String - Returns a new String that contains a portion of the original input.
-
stringToIterable(
String string) → Iterable< String> - Split a string considering surrogate-pairs.