Lines Matching defs:empty

79     /// that is empty.
111 EmptyClassNotAllowed => "empty character classes are not allowed",
185 /// The empty regular expression, which matches everything, including the
186 /// empty string.
230 /// Returns an empty HIR expression.
232 /// An empty HIR expression always matches, including the empty string.
233 pub fn empty() -> Hir {
338 // match \b, so why do we say it can match the empty string? Well,
340 // [1, 1) as matches, and both of those matches correspond to the empty
341 // string. Thus, only *certain* empty strings match \b, which similarly
356 // If this operator can match the empty string, then it can never
400 0 => Hir::empty(),
493 0 => Hir::empty(),
560 let mut cls = ClassBytes::empty();
565 let mut cls = ClassUnicode::empty();
582 let mut cls = ClassBytes::empty();
586 let mut cls = ClassUnicode::empty();
665 /// Return true if and only if the empty string is part of the language
698 /// Return true if and only if this HIR is the empty regular expression.
711 /// empty) subexpressions.
854 pub fn empty() -> ClassUnicode {
1097 pub fn empty() -> ClassBytes {
1344 /// The expression inside the capturing group, which may be empty.
1388 /// to match the empty string.
1391 /// will report `true`, `()+` will not, even though `()` matches the empty
1392 /// string and one or more occurrences of something that matches the empty
1393 /// string will always match the empty string. In order to get the
1451 let mut stack = vec![mem::replace(self, Hir::empty())];
1460 stack.push(mem::replace(&mut x.hir, Hir::empty()));
1463 stack.push(mem::replace(&mut x.hir, Hir::empty()));
2263 let mut expr = Hir::empty();