auto_wrap#
Module Contents#
- class CharType#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- SPACE#
- ASIAN#
- LATIN#
- class TextWrap#
文本折叠类
- EAST_ASAIN_WIDTH_TABLE#
- classmethod get_width(char: str) int #
Returns the width of the char
- classmethod get_text_width(text: str) int #
Returns the width of the text
- classmethod process_text_whitespace(text: str) str #
Process whitespace and leading and trailing spaces in strings
- classmethod split_long_token(token: str, width: int) List[str] #
Split long token into smaller chunks.
- classmethod tokenizer(text: str)#
tokenize line