Crate int64grep

Crate int64grep 

Source
Expand description

Small search helpers used by the int64grep CLI binary.

This crate exposes a few small, focused functions for searching text by line and returning matches either as &str slices or as numbered String results.

The binary int64grep demonstrates a tiny CLI wrapper around these helpers.

Functionsยง

count
Number an existing set of result lines and return owned Strings.
count_search
Search and return numbered results as owned Strings.
no_parameter
Returns the help message used when the program receives too few arguments.
search
Search contents for lines containing query (case-sensitive).
search_case_insensitive
Case-insensitive search: returns matching trimmed lines as &str slices.
search_line_count
Search contents and return the original file line numbers with results as String.