Commit Graph

7 Commits (8f6357258450d84b9d572866ccb6c259ebdeae08)

Author SHA1 Message Date
Manos Pitsidianakis 8f63572584
Small refactors to avoid implicit unwrap() panics 5 years ago
Manos Pitsidianakis 651fda1467
text_processing: use grapheme length in Truncate 5 years ago
Manos Pitsidianakis b327bee3e4
text_processing: add GlobMatch trait
Move GlobMatch trait from ui::mailcap to text_processing in order to use
it for glob matching folder paths in subscribed_folders field of
account configuration. See next commit.
5 years ago
Manos Pitsidianakis f3c938d8c3
Prevent OOM abort when printing large strings 5 years ago
Manos Pitsidianakis b01b9ffbcb
text_processing: add reflow method() and enum to TextProcessing trait
Add
 split_lines_reflow(&self, reflow: Reflow, width: Option<usize>) -> Vec<String>
method that, according to reflow (No reflow, FormatFlowed
or All) reflows the text.

FormatFlowed follows the rfc3676 - The Text/Plain Format and DelSp Parameters
https://tools.ietf.org/html/rfc3676
5 years ago
Manos Pitsidianakis 5b679be782
text_processing: implement Unicode line breaking algorithm
Not conforming to the unicode standard yet
5 years ago
Manos Pitsidianakis d84ceca88e
create text_processing crate 5 years ago