6 releases
new 0.1.7 | Nov 24, 2024 |
---|---|
0.1.6 | Nov 23, 2024 |
#2 in #search-case
240 downloads per month
Used in core-grep
4KB
This is search
grep lib
Example of using search
:
use search::{search, search_case_insensitive};
fn main() {
let query = "RUst";
let contents = "Rust is good language";
let results = search(query, contents, false, false, true);
assert_eq!(results, vec!["Rust"]) // -> True
}
Version search
-- 0.1.7
Note:
- This is part of the
grep
project
Update version -- 0.1.7
- Update function search
- Delete function search_case_insensitive
- Update README.md
Dependencies
~2–3MB
~54K SLoC