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

grep-search

This is search query in contents lib

6 releases

new 0.1.7 Nov 24, 2024
0.1.6 Nov 23, 2024

#2 in #search-case

Download history 240/week @ 2024-11-17

240 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–3MB
~54K SLoC