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

Function empty_caps

std/re/src/main/matcher.rs:257–261  ·  view source on GitHub ↗
(ngroups: usize)

Source from the content-addressed store, hash-verified

255}
256
257fn empty_caps(ngroups: usize) -> Caps {
258 let mut v = Vec::with_capacity(ngroups + 1);
259 for _ in 0..=ngroups { v.push(None); }
260 v
261}
262
263fn is_single(node: &Node) -> bool {
264 matches!(node, Node::Char(_) | Node::AnyChar | Node::Class { .. })

Callers 2

search_fromMethod · 0.85
match_atMethod · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected