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

Function iter_splits_with_utf8_haystack

rust/stringzilla.rs:3588–3593  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3586
3587 #[test]
3588 fn iter_splits_with_utf8_haystack() {
3589 let haystack = "こんにちは,世界".as_bytes();
3590 let needle = b",";
3591 let splits: Vec<_> = haystack.sz_splits(needle).collect();
3592 assert_eq!(splits, vec!["こんにちは".as_bytes(), "世界".as_bytes()]);
3593 }
3594
3595 #[test]
3596 fn iter_find_first_of() {

Callers

nothing calls this directly

Calls 2

as_bytesMethod · 0.80
sz_splitsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…