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

Method c_repeat_one_or_more

regex/src/compile.rs:563–574  ·  view source on GitHub ↗
(&mut self, expr: &Hir, greedy: bool)

Source from the content-addressed store, hash-verified

561 }
562
563 fn c_repeat_one_or_more(&mut self, expr: &Hir, greedy: bool) -> Result {
564 let Patch { hole: hole_rep, entry: entry_rep } = self.c(expr)?;
565 self.fill_to_next(hole_rep);
566 let split = self.push_split_hole();
567
568 let split_hole = if greedy {
569 self.fill_split(split, Some(entry_rep), None)
570 } else {
571 self.fill_split(split, None, Some(entry_rep))
572 };
573 Ok(Patch { hole: split_hole, entry: entry_rep })
574 }
575
576 fn c_repeat_range_min_or_more(
577 &mut self,

Callers 1

c_repeatMethod · 0.80

Calls 4

cMethod · 0.80
fill_to_nextMethod · 0.80
push_split_holeMethod · 0.80
fill_splitMethod · 0.80

Tested by

no test coverage detected