Skip to main content

Module cut

Module cut 

Source

Structs§

CutConfig
Configuration for cut operations.
Range
A range specification like 1, 3-5, -3, 4-

Enums§

CutMode
Cut operation mode

Functions§

cut_bytes
Cut bytes/chars from a line. Writes selected bytes to out.
cut_fields
Cut fields from a line using a delimiter. Writes to out.
parse_ranges
Parse a LIST specification like “1,3-5,7-” into ranges. Each range is 1-based. Returns sorted, merged ranges.
process_cut_data
Process a full data buffer (from mmap or read) with cut operation.
process_cut_reader
Process input from a reader (for stdin). Uses batch reading: reads large chunks (4MB), then processes them in batch using the fast mmap-based paths, avoiding per-line read_until syscall overhead.