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

Function at

codegraph-kernel/src/ccpp/brace_scopes.rs:103–105  ·  view source on GitHub ↗
(s: &[u8], i: usize)

Source from the content-addressed store, hash-verified

101 is_word_start(c) || c.is_ascii_digit()
102}
103fn at(s: &[u8], i: usize) -> u8 {
104 s.get(i).copied().unwrap_or(0)
105}
106fn find(src: &str, from: usize, pat: &str) -> Option<usize> {
107 src.get(from..).and_then(|rest| rest.find(pat)).map(|k| from + k)
108}

Callers 4

skip_blankFunction · 0.70
quoted_endFunction · 0.70
namespace_headFunction · 0.70
scanFunction · 0.70

Calls 1

getMethod · 0.65

Tested by

no test coverage detected