Structsยง
- String
Format ๐ - Describes the layout of a piece of text.
Enumsยง
- Snippet
State ๐ - Result of breaking a string so it fits in a line and the state it ended in. The state informs about what to do with the snippet and how to continue the breaking process.
Constantsยง
- MIN_
STRING ๐
Functionsยง
- break_
string ๐ - Break the input string at a boundary character around the offset
max_width
. A boundary character is either a punctuation or a whitespace. FIXME(issue#3281): We must follow UAX#14 algorithm instead of this. - detect_
url ๐ - Returns the index to the end of the URL if the split at index of the given string includes a
URL or alike. Otherwise, returns
None
. - graphemes_
width ๐ - is_
new_ ๐line - is_
part_ ๐of_ type - is_
punctuation ๐ - is_
valid_ ๐linebreak - is_
whitespace ๐ - not_
whitespace_ ๐except_ line_ feed - rewrite_
string ๐ - trim_
end_ ๐but_ line_ feed - Trims whitespaces to the right except for the line feed character.