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

Function iter_splits_forward

rust/stringzilla.rs:3556–3561  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3554
3555 #[test]
3556 fn iter_splits_forward() {
3557 let haystack = b"alpha,beta;gamma";
3558 let needle = b",";
3559 let splits: Vec<_> = haystack.sz_splits(needle).collect();
3560 assert_eq!(splits, vec![&b"alpha"[..], &b"beta;gamma"[..]]);
3561 }
3562
3563 #[test]
3564 fn iter_splits_reverse() {

Callers

nothing calls this directly

Calls 1

sz_splitsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…