MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / boundary_before

Function boundary_before

codegraph-kernel/src/cfnptr.rs:157–159  ·  view source on GitHub ↗
(s: &[u8], i: usize)

Source from the content-addressed store, hash-verified

155
156/// JS `\b` before position `i` (position 0, or previous byte non-word).
157#[inline]
158fn boundary_before(s: &[u8], i: usize) -> bool {
159 i == 0 || !is_word(s[i - 1])
160}
161
162fn find_bytes(s: &[u8], needle: &[u8], from: usize) -> Option<usize> {

Callers 3

find_wordFunction · 0.85
scan_fntype_typedefsFunction · 0.85
scan_array_dispatchFunction · 0.85

Calls 1

is_wordFunction · 0.85

Tested by

no test coverage detected