Lines Matching defs:new
55 /// Create a new regular expression compiler.
58 pub fn new() -> Self {
61 compiled: Program::new(),
62 capture_name_idx: HashMap::new(),
65 suffix_cache: SuffixCache::new(1000),
66 utf8_seqs: Some(Utf8Sequences::new('\x00', '\x00')),
67 byte_classes: ByteClassSet::new(),
209 self.compiled.capture_name_idx = Arc::new(self.capture_name_idx);
260 /// hole1 with entry2 and return a new patch that enters at entry1
289 char_ranges.push(hir::ClassUnicodeRange::new(s, e));
427 hir: Box::new(Hir::any(true)),
434 hir: Box::new(Hir::any(false)),
449 self.c_class(&[hir::ClassUnicodeRange::new(c, c)])
478 self.c_class_bytes(&[hir::ClassBytesRange::new(b, b)])
1116 fn new(size: usize) -> Self {
1155 fn new() -> Self {
1227 let mut set = ByteClassSet::new();
1241 let mut set = ByteClassSet::new();
1258 let mut set = ByteClassSet::new();