Function abridge::compress [−][src]
pub fn compress(buf: &str) -> String
Expand description
Compresses a word list from standard input, with one ASCII word per line in alphabetical order.
Safety:
- Words are in alphabetical order
- Words are separated by newline
- Words contain ASCII characters
Examples:
abridge -c < words.txt # compress words.txt
abridge --compress < words.txt > words.tzip # compress words.txt and save to words.tzip