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

Function pick

std/re/src/lib.rs:157–159  ·  view source on GitHub ↗
(f: &Found, ngroups: usize)

Source from the content-addressed store, hash-verified

155 }
156
157 fn pick(f: &Found, ngroups: usize) -> String {
158 if ngroups == 1 { f.groups[0].clone().unwrap_or_default() } else { f.text.clone() }
159 }
160
161 /* match: anchored at the start. Hand written export since `match` is a keyword. */
162 #[unsafe(no_mangle)]

Callers 1

findallFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected