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

Method group

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

Creates a group HIR expression.

(group: Group)

Source from the content-addressed store, hash-verified

377
378 /// Creates a group HIR expression.
379 pub fn group(group: Group) -> Hir {
380 let mut info = HirInfo::new();
381 info.set_always_utf8(group.hir.is_always_utf8());
382 info.set_all_assertions(group.hir.is_all_assertions());
383 info.set_anchored_start(group.hir.is_anchored_start());
384 info.set_anchored_end(group.hir.is_anchored_end());
385 info.set_line_anchored_start(group.hir.is_line_anchored_start());
386 info.set_line_anchored_end(group.hir.is_line_anchored_end());
387 info.set_any_anchored_start(group.hir.is_any_anchored_start());
388 info.set_any_anchored_end(group.hir.is_any_anchored_end());
389 info.set_match_empty(group.hir.is_match_empty());
390 info.set_literal(false);
391 info.set_alternation_literal(false);
392 Hir {
393 kind: HirKind::Group(group),
394 info: info,
395 }
396 }
397
398 /// Returns the concatenation of the given expressions.
399 ///

Callers

nothing calls this directly

Calls 10

is_always_utf8Method · 0.80
is_all_assertionsMethod · 0.80
is_anchored_startMethod · 0.80
is_anchored_endMethod · 0.80
is_line_anchored_endMethod · 0.80
is_any_anchored_startMethod · 0.80
is_any_anchored_endMethod · 0.80
is_match_emptyMethod · 0.80
GroupClass · 0.70

Tested by

no test coverage detected