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

Method boundary

std/re/src/main/matcher.rs:250–254  ·  view source on GitHub ↗
(&self, pos: usize)

Source from the content-addressed store, hash-verified

248 }
249
250 fn boundary(&self, pos: usize) -> bool {
251 let before = pos > 0 && is_word(self.input[pos - 1]);
252 let after = pos < self.input.len() && is_word(self.input[pos]);
253 before != after
254 }
255}
256
257fn empty_caps(ngroups: usize) -> Caps {

Callers 1

mMethod · 0.80

Calls 2

is_wordFunction · 0.85
lenMethod · 0.45

Tested by

no test coverage detected