grep-search

Crates.iogrep-search
lib.rsgrep-search
version0.1.7
sourcesrc
created_at2024-11-22 15:32:23.349266
updated_at2024-11-24 09:16:52.505011
descriptionThis is search query in contents lib.
homepage
repository
max_upload_size
id1457463
size3,257
(mike0top)

documentation

README

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
Commit count: 0

cargo fmt