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

Function memchr2_single_string

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

Source from the content-addressed store, hash-verified

1576/// offset and the byte found. Uses `memchr` for SIMD acceleration.
1577#[inline]
1578fn memchr2_single_string(haystack: &[u8]) -> Option<(usize, u8)> {
1579 memchr::memchr2(b'\'', b'\\', haystack).map(|pos| (pos, haystack[pos]))
1580}
1581
1582/// Find the next double-quote or backslash in a slice, returning the
1583/// offset and the byte found. Uses `memchr` for SIMD acceleration.

Callers 2

find_symbolsFunction · 0.85
find_classesFunction · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected