MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / find_byte_from

Function find_byte_from

rust/stringzilla.rs:1464–1470  ·  view source on GitHub ↗
(haystack: H, needles: N)

Source from the content-addressed store, hash-verified

1462/// `needles` within `haystack`, if found, otherwise `None`.
1463#[inline(always)]
1464pub fn find_byte_from<H, N>(haystack: H, needles: N) -> Option<usize>
1465where
1466 H: AsRef<[u8]>,
1467 N: AsRef<[u8]>,
1468{
1469 find_byteset(haystack, Byteset::from(needles))
1470}
1471
1472/// Finds the index of the last character in `haystack` that is also present in `needles`.
1473/// This can be used to find the last occurrence of any character from a specified set,

Callers 2

findMethod · 0.85
sz_find_byte_fromMethod · 0.85

Calls 1

find_bytesetFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…