1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-15 01:31:08 +00:00
uutils-coreutils/src
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
..
bin Update the binary usage to match busybox 2021-03-10 23:52:33 +01:00
uu wc: move counting code into WordCount::from_line() 2021-05-08 14:24:07 +02:00
uucore uucore: refactor - reduce duplicate code related to fs::display_permissions 2021-05-08 11:52:41 +02:00
uucore_procs Fix "panic message is not a string literal" warnings (#1915) 2021-03-26 11:09:16 +01:00