MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / memchr2_double_string

Function memchr2_double_string

src/classmap_scanner.rs:1585–1587  ·  view source on GitHub ↗
(haystack: &[u8])

Source from the content-addressed store, hash-verified

1583/// offset and the byte found. Uses `memchr` for SIMD acceleration.
1584#[inline]
1585fn memchr2_double_string(haystack: &[u8]) -> Option<(usize, u8)> {
1586 memchr::memchr2(b'"', b'\\', haystack).map(|pos| (pos, haystack[pos]))
1587}
1588
1589/// Check whether the keyword at position `i` is preceded by `use `
1590/// (with optional whitespace), indicating a `use function` or `use const`

Callers 2

find_symbolsFunction · 0.85
find_classesFunction · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected