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
contentsfor lines containingquery(case-sensitive). - search_
case_ insensitive - Case-insensitive search: returns matching trimmed lines as
&strslices. - search_
line_ count - Search
contentsand return the original file line numbers with results asString.