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

Method c_repeat_range_min_or_more

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

Source from the content-addressed store, hash-verified

574 }
575
576 fn c_repeat_range_min_or_more(
577 &mut self,
578 expr: &Hir,
579 greedy: bool,
580 min: u32,
581 ) -> Result {
582 let min = u32_to_usize(min);
583 let patch_concat = self.c_concat(iter::repeat(expr).take(min))?;
584 let patch_rep = self.c_repeat_zero_or_more(expr, greedy)?;
585 self.fill(patch_concat.hole, patch_rep.entry);
586 Ok(Patch { hole: patch_rep.hole, entry: patch_concat.entry })
587 }
588
589 fn c_repeat_range(
590 &mut self,

Callers 1

c_repeatMethod · 0.80

Calls 4

u32_to_usizeFunction · 0.85
c_concatMethod · 0.80
c_repeat_zero_or_moreMethod · 0.80
fillMethod · 0.80

Tested by

no test coverage detected