qalgebra.utils.unicode module¶
Utils for working with unicode strings
Summary¶
Functions:
Number of graphemes in text |
|
Left-justify text to a total of width |
|
Right-justify text for a total of width graphemes |
Reference¶
-
qalgebra.utils.unicode.
grapheme_len
(text)[source]¶ Number of graphemes in text
- This is the length of the text when printed::
>>> s = 'Â' >>> len(s) 2 >>> grapheme_len(s) 1