coreutils/src/uu/wc
Jeffrey Finkelstein ba8f4ea670 wc: move counting code into WordCount::from_line()
Refactor the counting code from the inner loop of the `wc` program
into the `WordCount::from_line()` associated function. This commit
also splits that function up into other helper functions that
encapsulate decoding characters and finding word boundaries from raw
bytes.

This commit also implements the `Sum` trait for the `WordCount`
struct, so that we can simply call `sum()` on an iterator that yields
`WordCount` instances.
2021-05-08 14:24:07 +02:00
..
src wc: move counting code into WordCount::from_line() 2021-05-08 14:24:07 +02:00
Cargo.toml new release 0.0.6 to address the cat issue 2021-04-03 16:06:58 +02:00