MCPcopy Create free account
hub / github.com/davidblewett/rure-python / is_match_empty

Method is_match_empty

regex/regex-syntax/src/hir/mod.rs:686–688  ·  view source on GitHub ↗

Return true if and only if the empty string is part of the language matched by this regular expression. This includes `a*`, `a?b*`, `a{0}`, `()`, `()+`, `^$`, `a|b?`, `\B`, but not `a`, `a+` or `\b`.

(&self)

Source from the content-addressed store, hash-verified

684 /// This includes `a*`, `a?b*`, `a{0}`, `()`, `()+`, `^$`, `a|b?`, `\B`,
685 /// but not `a`, `a+` or `\b`.
686 pub fn is_match_empty(&self) -> bool {
687 self.info.is_match_empty()
688 }
689
690 /// Return true if and only if this HIR is a simple literal. This is only
691 /// true when this HIR expression is either itself a `Literal` or a

Callers 4

repetitionMethod · 0.80
groupMethod · 0.80
concatMethod · 0.80
alternationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected