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

Method is_all_assertions

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

Returns true if and only if this entire HIR expression is made up of zero-width assertions. This includes expressions like `^$\b\A\z` and even `((\b)+())*^`, but not `^a`.

(&self)

Source from the content-addressed store, hash-verified

619 /// This includes expressions like `^$\b\A\z` and even `((\b)+())*^`, but
620 /// not `^a`.
621 pub fn is_all_assertions(&self) -> bool {
622 self.info.is_all_assertions()
623 }
624
625 /// Return true if and only if this HIR is required to match from the
626 /// beginning of text. This includes expressions like `^foo`, `^(foo|bar)`,

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected