#search #search-query #lib #search-case #grep #content #case-insensitive

grep-search

This is search query in contents lib

6 releases

0.1.7 Nov 24, 2024
0.1.6 Nov 23, 2024

#2 in #search-case

Download history 391/week @ 2024-11-18 48/week @ 2024-11-25

439 downloads per month
Used in core-grep

MIT license

4KB

This is search grep lib

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.2–3MB
~55K SLoC