"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "crates/matcher/tests/test_matcher.rs" between
ripgrep-12.1.1.tar.gz and ripgrep-13.0.0.tar.gz

About: ripgrep is a command line search tool ("rg") that tries to combine the usability of "ag" (an "ack" clone) with the raw speed of GNU "grep" (written in "Rust").

test_matcher.rs  (ripgrep-12.1.1):test_matcher.rs  (ripgrep-13.0.0)
use grep_matcher::{Captures, Match, Matcher}; use grep_matcher::{Captures, Match, Matcher};
use regex::bytes::Regex; use regex::bytes::Regex;
use util::{RegexMatcher, RegexMatcherNoCaps}; use crate::util::{RegexMatcher, RegexMatcherNoCaps};
fn matcher(pattern: &str) -> RegexMatcher { fn matcher(pattern: &str) -> RegexMatcher {
RegexMatcher::new(Regex::new(pattern).unwrap()) RegexMatcher::new(Regex::new(pattern).unwrap())
} }
fn matcher_no_caps(pattern: &str) -> RegexMatcherNoCaps { fn matcher_no_caps(pattern: &str) -> RegexMatcherNoCaps {
RegexMatcherNoCaps(Regex::new(pattern).unwrap()) RegexMatcherNoCaps(Regex::new(pattern).unwrap())
} }
fn m(start: usize, end: usize) -> Match { fn m(start: usize, end: usize) -> Match {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)