Crate rcut_lib

Source
Expand description

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.

Structs§

ByteLineProcessor
CharContext
CharProcessor
CharUtf8LineProcessor
FieldContext
FieldProcessor
FieldUtf8LineProcessor

Traits§

CharContextT
FieldContextT

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
prepare_ranged_pairs
Utility function to process ranged pairs (extract, and merge on demand)
process_line_by_byte
Extract bytes from a line within given ranges
process_line_by_char_utf8
Extract chars from a UTF-8 line within given ranges
process_line_by_field_utf8
Extract fields from a UTF-8 line within given ranges
str_to_ranged_pair
Extract ranged pair having the pattern (\d|\d+-|-\d+|\d+-\d+)
version
Cargo version specified in the Cargo.toml file