Crate zet[][src]

Expand description

The do_calculation function is the kernel of the appliction. The args module parses the command line, and the io module hides I/O details.

Current Limitations:

  • Currently a “line” is zero or more non-newline bytes followed by a newline. That’s a problem for little-endian UTF-16. Eventually we want to use BOM sniffing to detect UTF-16LE, UTF16BE, and UTF8 so we can
    • allow files of different formats on the command line, and
    • make our output compatible with the format of the first operand.

Modules

args

Code to parse the command line using structop and clap, and definitions of the parsed result

io

Input/Output structs and functions

Functions

do_calculation

Calculates and prints the set operation named by op. Each file in files is treated as a set of lines: