Lines Matching defs:new

23         TranslatorBuilder::new()
28 /// Create a new translator builder with a default c onfiguration.
29 pub fn new() -> TranslatorBuilder {
39 stack: RefCell::new(vec![]),
40 flags: Cell::new(self.flags),
115 /// Create a new translator using the default configuration.
116 pub fn new() -> Translator {
117 TranslatorBuilder::new().build()
130 ast::visit(ast, TranslatorI::new(self, pattern))
164 /// If this group sets flags, then the new active flags are set to the
413 cls.push(hir::ClassUnicodeRange::new(x.c, x.c));
418 cls.push(hir::ClassBytesRange::new(byte, byte));
425 cls.push(hir::ClassUnicodeRange::new(x.start.c, x.end.c));
431 cls.push(hir::ClassBytesRange::new(start, end));
590 /// Build a new internal translator.
591 fn new(trans: &'t Translator, pattern: &'p str) -> TranslatorI<'t, 'p> {
610 /// Create a new error with the given span and error type.
689 hir::ClassUnicode::new(vec![hir::ClassUnicodeRange::new(
706 hir::ClassBytes::new(vec![hir::ClassBytesRange::new(
782 Hir::group(hir::Group { kind, hir: Box::new(expr) })
805 Hir::repetition(hir::Repetition { kind, greedy, hir: Box::new(expr) })
850 let mut cls = hir::ClassUnicode::new(
853 .map(|&(s, e)| hir::ClassUnicodeRange::new(s, e)),
863 let mut cls = hir::ClassBytes::new(
866 .map(|&(s, e)| hir::ClassBytesRange::new(s as u8, e as u8)),
1090 .map(|(s, e)| hir::ClassBytesRange::new(s as u8, e as u8))
1092 hir::ClassBytes::new(ranges)
1153 ParserBuilder::new().octal(true).build().parse(pattern).unwrap()
1157 TranslatorBuilder::new()
1165 TranslatorBuilder::new()
1173 TranslatorBuilder::new()
1213 hir: Box::new(expr),
1223 hir: Box::new(expr),
1230 hir: Box::new(expr),
1238 hir: Box::new(expr),
1246 hir: Box::new(expr),
1254 hir: Box::new(expr),
1262 hir: Box::new(expr),
1287 .map(|&(s, e)| hir::ClassUnicodeRange::new(s, e))
1289 Hir::class(hir::Class::Unicode(hir::ClassUnicode::new(ranges)))
1295 .map(|&(s, e)| hir::ClassBytesRange::new(s, e))
1297 Hir::class(hir::Class::Bytes(hir::ClassBytes::new(ranges)))
1306 hir::ClassBytesRange::new(s as u8, e as u8)
1309 Hir::class(hir::Class::Bytes(hir::ClassBytes::new(ranges)))
1429 span: Span::new(
1430 Position::new(5, 1, 6),
1431 Position::new(8, 1, 7)
1439 span: Span::new(
1440 Position::new(5, 1, 6),
1441 Position::new(9, 1, 10)
1519 span: Span::new(
1520 Position::new(6, 1, 7),
1521 Position::new(8, 1, 8),
1545 span: Span::new(
1546 Position::new(5, 1, 6),
1547 Position::new(6, 1, 7)
1555 span: Span::new(
1556 Position::new(6, 1, 7),
1557 Position::new(7, 1, 8)
1586 span: Span::new(
1587 Position::new(5, 1, 6),
1588 Position::new(7, 1, 8)
1944 span: Span::new(
1945 Position::new(6, 1, 7),
1946 Position::new(16, 1, 17)
1954 span: Span::new(
1955 Position::new(7, 1, 8),
1956 Position::new(17, 1, 18)
2096 span: Span::new(
2097 Position::new(0, 1, 1),
2098 Position::new(2, 1, 3)
2111 span: Span::new(
2112 Position::new(0, 1, 1),
2113 Position::new(2, 1, 3)
2129 span: Span::new(
2130 Position::new(0, 1, 1),
2131 Position::new(2, 1, 3)
2203 span: Span::new(
2204 Position::new(5, 1, 6),
2205 Position::new(8, 1, 9)
2213 span: Span::new(
2214 Position::new(5, 1, 6),
2215 Position::new(18, 1, 19)
2223 span: Span::new(
2224 Position::new(0, 1, 1),
2225 Position::new(3, 1, 4)
2233 span: Span::new(
2234 Position::new(0, 1, 1),
2235 Position::new(7, 1, 8)
2243 span: Span::new(
2244 Position::new(0, 1, 1),
2245 Position::new(10, 1, 11)
2258 span: Span::new(
2259 Position::new(0, 1, 1),
2260 Position::new(13, 1, 14)
2269 span: Span::new(
2270 Position::new(0, 1, 1),
2271 Position::new(7, 1, 8)
2301 span: Span::new(
2302 Position::new(0, 1, 1),
2303 Position::new(10, 1, 11)
2311 span: Span::new(
2312 Position::new(0, 1, 1),
2313 Position::new(11, 1, 12)
2326 span: Span::new(
2327 Position::new(0, 1, 1),
2328 Position::new(9, 1, 10)
2337 span: Span::new(
2338 Position::new(0, 1, 1),
2339 Position::new(13, 1, 14)
2352 span: Span::new(
2353 Position::new(0, 1, 1),
2354 Position::new(11, 1, 12)
2367 span: Span::new(
2368 Position::new(0, 1, 1),
2369 Position::new(7, 1, 8)
2382 span: Span::new(
2383 Position::new(0, 1, 1),
2384 Position::new(11, 1, 12)
2517 span: Span::new(
2518 Position::new(5, 1, 6),
2519 Position::new(9, 1, 10)
2528 span: Span::new(
2529 Position::new(0, 1, 1),
2530 Position::new(7, 1, 8)
2539 span: Span::new(
2540 Position::new(5, 1, 6),
2541 Position::new(12, 1, 13)
2696 span: Span::new(
2697 Position::new(0, 1, 1),
2698 Position::new(10, 1, 11)
2707 span: Span::new(
2708 Position::new(4, 1, 5),
2709 Position::new(14, 1, 15)