Home
last modified time | relevance | path

Searched refs:replacen (Results 1 - 2 of 2) sorted by relevance

/third_party/rust/crates/regex/tests/
H A Dreplace.rs236 re.replacen(text!("age: 1234"), 2, t!("Z")), in replacen_no_captures()
245 re.replacen(text!("age: 1234"), 2, t!("${1}Z")), in replacen_with_captures()
/third_party/rust/crates/memchr/bench/data/code/
H A Drust-library.rs3744 assert_eq!("".replacen('a', "b", 5), ""); in test_replacen()
3745 assert_eq!("acaaa".replacen("a", "b", 3), "bcbba"); in test_replacen()
3746 assert_eq!("aaaa".replacen("a", "b", 0), "aaaa"); in test_replacen()
3749 assert_eq!(" test test ".replacen(test, "toast", 3), " toast toast "); in test_replacen()
3750 assert_eq!(" test test ".replacen(test, "toast", 0), " test test "); in test_replacen()
3751 assert_eq!(" test test ".replacen(test, "", 5), " "); in test_replacen()
3753 assert_eq!("qwer123zxc789".replacen(char::is_numeric, "", 3), "qwerzxc789"); in test_replacen()
15254 /// `replacen` creates a new [`String`], and copies the data from this string slice into it.
15264 /// assert_eq!("new new 123 foo", s.replacen("foo", "new", 2));
15265 /// assert_eq!("faa fao 123 foo", s.replacen('
15278 pub fn replacen<'a, P: Pattern<'a>>(&'a self, pat: P, to: &str, count: usize) -> String { replacen() functions
[all...]

Completed in 30 milliseconds