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

Function replace_all_byteset_basic

rust/stringzilla.rs:3990–3996  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3988
3989 #[test]
3990 fn replace_all_byteset_basic() {
3991 let mut buffer = b"hello world".to_vec();
3992 let vowels = sz::Byteset::from("aeiou");
3993 let replaced = sz::try_replace_all_byteset(&mut buffer, vowels, b"_").unwrap();
3994 assert_eq!(replaced, 3);
3995 assert_eq!(buffer, b"h_ll_ w_rld");
3996 }
3997
3998 #[test]
3999 fn replace_all_byteset_grows() {

Callers

nothing calls this directly

Calls 1

try_replace_all_bytesetFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…