Home
last modified time | relevance | path

Searched refs:RegexBuilder (Results 1 – 11 of 11) sorted by relevance

/external/rust/crates/regex-automata/src/
Dregex.rs138 RegexBuilder::new().build(pattern) in new()
168 RegexBuilder::new().build_sparse(pattern) in new_sparse()
472 pub struct RegexBuilder { struct
477 impl RegexBuilder { impl
479 pub fn new() -> RegexBuilder { in new()
480 RegexBuilder { dfa: dense::Builder::new() } in new()
558 pub fn anchored(&mut self, yes: bool) -> &mut RegexBuilder { in anchored() argument
567 pub fn case_insensitive(&mut self, yes: bool) -> &mut RegexBuilder { in case_insensitive() argument
580 pub fn ignore_whitespace(&mut self, yes: bool) -> &mut RegexBuilder { in ignore_whitespace() argument
589 pub fn dot_matches_new_line(&mut self, yes: bool) -> &mut RegexBuilder { in dot_matches_new_line() argument
[all …]
Dlib.rs305 pub use regex::RegexBuilder;
/external/rust/crates/regex/src/
Dre_builder.rs51 pub struct RegexBuilder(RegexOptions);
53 impl RegexBuilder { impl
58 pub fn new(pattern: &str) -> RegexBuilder {
59 let mut builder = RegexBuilder(RegexOptions::default());
83 ) -> &mut RegexBuilder {
94 pub fn multi_line(&mut self, yes: bool) -> &mut RegexBuilder {
109 ) -> &mut RegexBuilder {
120 pub fn swap_greed(&mut self, yes: bool) -> &mut RegexBuilder {
133 ) -> &mut RegexBuilder {
142 pub fn unicode(&mut self, yes: bool) -> &mut RegexBuilder {
[all …]
Dre_unicode.rs15 use re_builder::unicode::RegexBuilder;
176 RegexBuilder::new(re).build() in new()
Dre_bytes.rs14 use re_builder::bytes::RegexBuilder;
120 RegexBuilder::new(re).build() in new()
/external/rust/crates/regex-automata/tests/
Dsuite.rs1 use regex_automata::{DenseDFA, Regex, RegexBuilder, SparseDFA};
7 let mut builder = RegexBuilder::new(); in unminimized_standard()
17 let mut builder = RegexBuilder::new(); in unminimized_premultiply()
27 let mut builder = RegexBuilder::new(); in unminimized_byte_class()
37 let mut builder = RegexBuilder::new(); in unminimized_premultiply_byte_class()
47 let mut builder = RegexBuilder::new(); in unminimized_standard_no_nfa_shrink()
61 let mut builder = RegexBuilder::new(); in minimized_standard()
71 let mut builder = RegexBuilder::new(); in minimized_premultiply()
81 let mut builder = RegexBuilder::new(); in minimized_byte_class()
91 let mut builder = RegexBuilder::new(); in minimized_premultiply_byte_class()
[all …]
Dcollection.rs7 use regex_automata::{DenseDFA, ErrorKind, Regex, RegexBuilder, StateID, DFA};
177 mut builder: RegexBuilder, in build_regex() argument
200 pub fn test_all<'a, I, T>(&mut self, builder: RegexBuilder, tests: I) in test_all() argument
301 fn apply_options(&self, test: &RegexTest, builder: &mut RegexBuilder) { in apply_options() argument
/external/rust/crates/regex/tests/
Dtest_default.rs80 assert!(regex::RegexBuilder::new(r"\0").octal(true).build().is_ok()); in allow_octal()
86 use regex::{Regex, RegexBuilder, RegexSet, RegexSetBuilder}; in oibits()
98 assert_send::<RegexBuilder>(); in oibits()
99 assert_sync::<RegexBuilder>(); in oibits()
100 assert_unwind_safe::<RegexBuilder>(); in oibits()
101 assert_ref_unwind_safe::<RegexBuilder>(); in oibits()
107 assert_send::<bytes::RegexBuilder>(); in oibits()
108 assert_sync::<bytes::RegexBuilder>(); in oibits()
109 assert_unwind_safe::<bytes::RegexBuilder>(); in oibits()
110 assert_ref_unwind_safe::<bytes::RegexBuilder>(); in oibits()
Dcrazy.rs167 use regex::RegexBuilder; in nest_limit_makes_it_parse()
169 RegexBuilder::new( in nest_limit_makes_it_parse()
/external/rust/crates/regex/
DCHANGELOG.md450 Correct outdated documentation on `RegexBuilder::dot_matches_new_line`.
498 `RegexBuilder`.
729 (`RegexBuilder::compile` was renamed to `RegexBuilder::build`.)
784 `RegexBuilder::size_limit`.
785 * The `RegexBuilder` type has switched from owned `self` method receivers to
788 * The `compile` method on `RegexBuilder` has been renamed to `build`.
/external/rust/crates/regex-automata/
DREADME.md131 UTF-8 boundaries, unless `RegexBuilder::allow_invalid_utf8` is enabled.