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

Function word_end

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

Source from the content-addressed store, hash-verified

146
147/// End of the `\w+` run starting at `i` (caller checks `is_word_at(s, i)`).
148#[inline]
149fn word_end(s: &[u8], mut i: usize) -> usize {
150 while i < s.len() && is_word(s[i]) {
151 i += 1;
152 }
153 i
154}
155
156/// JS `\b` before position `i` (position 0, or previous byte non-word).

Callers 11

fnptr_paren_tailFunction · 0.85
scan_fntype_typedefsFunction · 0.85
scan_inline_structsFunction · 0.85
init_bodyFunction · 0.85
array_table_bodyFunction · 0.85
alias_lineFunction · 0.85
field_assign_atFunction · 0.85
scan_dispatchFunction · 0.85
scan_array_dispatchFunction · 0.85
first_typedFunction · 0.85
parse_struct_fields_rawFunction · 0.85

Calls 2

is_wordFunction · 0.85
lenMethod · 0.80

Tested by

no test coverage detected