(f: &Found, ngroups: usize)
| 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)] |