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

Method at_end

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

Source from the content-addressed store, hash-verified

241 }
242
243 fn at_end(&self, pos: usize) -> bool {
244 let len = self.input.len();
245 if pos == len { return true; }
246 if pos == len - 1 && self.input[pos] == '\n' { return true; } // before a trailing newline
247 self.flags.multiline && self.input[pos] == '\n'
248 }
249
250 fn boundary(&self, pos: usize) -> bool {
251 let before = pos > 0 && is_word(self.input[pos - 1]);

Callers 1

mMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected