MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / push_group

Function push_group

std/re/src/main/mod.rs:172–176  ·  view source on GitHub ↗
(idx: usize, chars: &[char], caps: &Caps, out: &mut String)

Source from the content-addressed store, hash-verified

170}
171
172fn push_group(idx: usize, chars: &[char], caps: &Caps, out: &mut String) {
173 if let Some((s, e)) = caps.get(idx).copied().flatten() {
174 for ch in &chars[s..e] { out.push(*ch); }
175 }
176}
177
178/* Signals that backtracking degraded, so the author can rewrite the pattern. */
179fn too_complex() -> ReError {

Callers 1

expandFunction · 0.85

Calls 2

pushMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected