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§
- Byte
Line Processor - Char
Context - Char
Processor - Char
Utf8 Line Processor - Field
Context - Field
Processor - Field
Utf8 Line Processor
Traits§
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