/third_party/rust/crates/regex/regex-syntax/src/hir/ |
D | translate.rs | 9 use crate::hir::{self, Error, ErrorKind, Hir}; 129 pub fn translate(&mut self, pattern: &str, ast: &Ast) -> Result<Hir> { in translate() argument 145 Expr(Hir), 188 fn unwrap_expr(self) -> Hir { in unwrap_expr() argument 235 type Output = Hir; 238 fn finish(self) -> Result<Hir> { in finish() argument 278 self.push(HirFrame::Expr(Hir::empty())); in visit_post() 291 self.push(HirFrame::Expr(Hir::empty())); in visit_post() 306 self.push(HirFrame::Expr(Hir::class(hcls))); in visit_post() 310 self.push(HirFrame::Expr(Hir::class(hcls))); in visit_post() [all …]
|
D | visitor.rs | 1 use crate::hir::{self, Hir, HirKind}; 28 fn visit_pre(&mut self, _hir: &Hir) -> Result<(), Self::Err> { in visit_pre() 34 fn visit_post(&mut self, _hir: &Hir) -> Result<(), Self::Err> { in visit_post() 59 pub fn visit<V: Visitor>(hir: &Hir, visitor: V) -> Result<V::Output, V::Err> { in visit() argument 68 stack: Vec<(&'a Hir, Frame<'a>)>, 84 head: &'a Hir, 86 tail: &'a [Hir], 92 head: &'a Hir, 94 tail: &'a [Hir], 105 mut hir: &'a Hir, in visit() argument [all …]
|
D | mod.rs | 175 pub struct Hir { struct 208 Concat(Vec<Hir>), 214 Alternation(Vec<Hir>), 217 impl Hir { implementation 233 pub fn empty() -> Hir { in empty() 246 Hir { kind: HirKind::Empty, info } in empty() 254 pub fn literal(lit: Literal) -> Hir { in literal() argument 271 Hir { kind: HirKind::Literal(lit), info } in literal() 275 pub fn class(class: Class) -> Hir { in class() argument 288 Hir { kind: HirKind::Class(class), info } in class() [all …]
|
D | print.rs | 8 use crate::hir::{self, Hir, HirKind}; 67 pub fn print<W: fmt::Write>(&mut self, hir: &Hir, wtr: W) -> fmt::Result { in print() argument 85 fn visit_pre(&mut self, hir: &Hir) -> fmt::Result { in visit_pre() 162 fn visit_post(&mut self, hir: &Hir) -> fmt::Result { in visit_post()
|
/third_party/rust/crates/regex/regex-syntax/ |
D | README.md | 17 There are two primary types exported by this crate: `Ast` and `Hir`. The former 22 automata. An `Hir` achieves this by drastically simplifying the syntactic 23 structure of the regular expression. While an `Hir` can be converted back to 25 concrete syntax that produced the `Hir`. 34 use regex_syntax::hir::{self, Hir}; 37 assert_eq!(hir, Hir::alternation(vec![ 38 Hir::literal(hir::Literal::Unicode('a')), 39 Hir::literal(hir::Literal::Unicode('b')), 67 to the `Hir`. 92 compile a `regex::Regex` from a `regex_syntax::hir::Hir`. Instead, one must [all …]
|
/third_party/rust/crates/regex/regex-syntax/src/hir/literal/ |
D | mod.rs | 11 use crate::hir::{self, Hir, HirKind}; 58 pub fn prefixes(expr: &Hir) -> Literals { in prefixes() 65 pub fn suffixes(expr: &Hir) -> Literals { in suffixes() 307 pub fn union_prefixes(&mut self, expr: &Hir) -> bool { in union_prefixes() 322 pub fn union_suffixes(&mut self, expr: &Hir) -> bool { in union_suffixes() 582 fn prefixes(expr: &Hir, lits: &mut Literals) { in prefixes() argument 655 fn suffixes(expr: &Hir, lits: &mut Literals) { in suffixes() argument 731 fn repeat_zero_or_one_literals<F: FnMut(&Hir, &mut Literals)>( in repeat_zero_or_one_literals() argument 732 e: &Hir, in repeat_zero_or_one_literals() 737 &Hir::repetition(hir::Repetition { in repeat_zero_or_one_literals() [all …]
|
/third_party/rust/crates/regex/src/ |
D | compile.rs | 7 use regex_syntax::hir::{self, Hir}; 129 pub fn compile(mut self, exprs: &[Hir]) -> result::Result<Program, Error> { in compile() 139 fn compile_one(mut self, expr: &Hir) -> result::Result<Program, Error> { in compile_one() 167 exprs: &[Hir], in compile_many() argument 268 fn c(&mut self, expr: &Hir) -> ResultOrEmpty { in c() 405 fn c_capture(&mut self, first_slot: usize, expr: &Hir) -> ResultOrEmpty { in c_capture() 424 self.c(&Hir::repetition(hir::Repetition { in c_dotstar() 427 hir: Box::new(Hir::any(true)), in c_dotstar() 431 self.c(&Hir::repetition(hir::Repetition { in c_dotstar() 434 hir: Box::new(Hir::any(false)), in c_dotstar() [all …]
|
D | exec.rs | 9 use regex_syntax::hir::Hir; 123 exprs: Vec<Hir>, 1549 fn alternation_literals(expr: &Hir) -> Option<Vec<Vec<u8>>> { in alternation_literals()
|
/third_party/rust/crates/regex/regex-debug/src/ |
D | main.rs | 9 use regex_syntax::hir::Hir; 291 fn parse_one(&self) -> Result<Hir> { in parse_one() argument 295 fn parse_many(&self) -> Result<Vec<Hir>> { in parse_many() argument 299 fn literals<F: Fn(&mut Literals, &Hir) -> bool>( in literals() 301 exprs: &[Hir], in literals() argument 329 fn parse(re: &str) -> Result<Hir> { in parse() argument
|
/third_party/rust/crates/regex/regex-syntax/src/ |
D | parser.rs | 195 pub fn parse(&mut self, pattern: &str) -> Result<hir::Hir> { in parse() argument
|
/third_party/rust/crates/syn/tests/common/ |
D | eq.rs | 475 spanless_eq_enum!(AttrArgsEq; Ast(0) Hir(0)); 730 AttrArgsEq::Hir(lit) => is_escaped_literal_meta_item_lit(lit, unescaped), in is_escaped_literal_attr_args()
|
/third_party/rust/crates/regex/ |
D | CHANGELOG.md | 56 Fixes a bug where `Hir::is_match_empty` returned `false` for `\b`. 690 The `Hir` type in `regex-syntax` now has a printer.
|
/third_party/icu/icu4c/source/data/zone/ |
D | kgp.txt | 913 ec{"Mruken Hir"}
|