[−][src]Crate rcut
rcut
is a Rust replacement for GNU cut that supports UTF-8.
Implementation details are exported for reusability in case users
are interested in building their own char/word cutter.
If you are wondering why this library is cool, consider this:
echo 🦃🐔🐓🐣🐤🐥🐦🐧🕊🦅🦆🦢🦉🦚🦜 | rcut -N -c 9,4,7,3,12,5-15
Enums
Readable | Utility class to enable static dispatching for STDIN and files |
Functions
extract_ranged_pairs | Extract list of comma-separated ranged pairs |
merge_ranged_pairs | Sort ranged pairs and merge those having adjacent or overlapping boundaries |
process_files | Process files: Send them via rcut pipeline |
process_line_ascii | Extract parts of an ASCII encoded line |
process_line_utf8 | Extract parts of a UTF-8 encoded line |
process_lines | Generic line processor that delegates to concrete line processors |
process_readable | Process readable object: Send it via rcut pipeline |
run | Perform operations similar to GNU cut |
str_to_ranged_pair | Extract ranged pair having the pattern |
version | Cargo version specified in the Cargo.toml file |