Skip to main content

Module unicode

Module unicode 

Source

Functionsยง

byte_to_char
Convert a byte to a character representation
char_display_width
Calculates the width of the char when displayed in the terminal
char_to_byte
Convert a character to a byte representation
char_to_column
Convert a character index to a column index within the view
column_to_char
display_width
Calculates the width of the string when displayed in the terminal
next_grapheme_boundary
Query the byte boundary of the next grapheme in a given string
prev_grapheme_boundary
Query the byte boundary of the previous grapheme in a given string