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§
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.