matcher.rs (ripgrep-12.1.1) | : | matcher.rs (ripgrep-13.0.0) | ||
---|---|---|---|---|
use std::collections::HashMap; | use std::collections::HashMap; | |||
use grep_matcher::{Captures, Match, Matcher}; | use grep_matcher::{Captures, Match, Matcher}; | |||
use pcre2::bytes::{CaptureLocations, Regex, RegexBuilder}; | use pcre2::bytes::{CaptureLocations, Regex, RegexBuilder}; | |||
use error::Error; | use crate::error::Error; | |||
/// A builder for configuring the compilation of a PCRE2 regex. | /// A builder for configuring the compilation of a PCRE2 regex. | |||
#[derive(Clone, Debug)] | #[derive(Clone, Debug)] | |||
pub struct RegexMatcherBuilder { | pub struct RegexMatcherBuilder { | |||
builder: RegexBuilder, | builder: RegexBuilder, | |||
case_smart: bool, | case_smart: bool, | |||
word: bool, | word: bool, | |||
} | } | |||
impl RegexMatcherBuilder { | impl RegexMatcherBuilder { | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |