Home
last modified time | relevance | path

Searched refs:replace_all (Results 1 - 14 of 14) sorted by relevance

/third_party/rust/crates/regex/tests/
H A Dreplace.rs14 replace!(all, replace_all, r"[0-9]", "age: 26", t!("Z"), "age: ZZ");
35 replace_all,
43 replace_all,
53 replace_all,
61 replace_all,
69 replace_all,
114 replace_all,
127 replace_all,
/third_party/rust/crates/regex/examples/
H A Dshootout-regex-dna-single-cheat.rs21 seq = regex!(">[^\n]*\n|\n").replace_all(&seq, "").into_owned(); in main()
51 ]; // combined into one regex in `replace_all` in main()
52 let seq = replace_all(&seq, substs); in main()
57 fn replace_all(text: &str, substs: Vec<(u8, &str)>) -> String { in replace_all() functions
H A Dshootout-regex-dna-cheat.rs11 // `replace_all`. As a result, this is around 25% faster. ---AG
28 seq = regex!(">[^\n]*\n|\n").replace_all(&seq, "").into_owned(); in main()
63 ]; // combined into one regex in `replace_all` in main()
64 let seq = replace_all(&seq, substs); in main()
72 fn replace_all(text: &str, substs: Vec<(u8, &str)>) -> String { in replace_all() functions
H A Dshootout-regex-dna-single.rs21 seq = regex!(">[^\n]*\n|\n").replace_all(&seq, "").into_owned(); in main()
54 seq = re.replace_all(&seq, replacement).into_owned(); in main()
H A Dshootout-regex-dna.rs23 seq = regex!(">[^\n]*\n|\n").replace_all(&seq, "").into_owned(); in main()
61 seq = re.replace_all(&seq, replacement).into_owned(); in main()
H A Dshootout-regex-dna-bytes.rs23 seq = regex!(">[^\n]*\n|\n").replace_all(&seq, &b""[..]).into_owned(); in main()
61 seq = re.replace_all(&seq, replacement).into_owned(); in main()
H A Dshootout-regex-dna-replace.rs15 seq = regex!(">[^\n]*\n|\n").replace_all(&seq, "").into_owned(); in main()
/third_party/python/Lib/idlelib/idle_test/
H A Dtest_replace.py252 replace_all = self.dialog.replace_all
258 replace_all()
263 replace_all()
269 replace_all()
274 replace_all()
/third_party/skia/tools/skdiff/
H A Dskdiff_utils.cpp105 static SkString replace_all(const SkString &input, in replace_all() function
130 diffName = replace_all(diffName, PATH_DIV_STR, "_"); in filename_to_derived_filename()
/third_party/python/Lib/idlelib/
H A Dreplace.py93 self.make_button("Replace All", self.replace_all)
131 def replace_all(self, event=None): member in ReplaceDialog
/third_party/rust/crates/regex/bench/src/
H A Dmisc.rs98 fn replace_all(b: &mut Bencher) { in replace_all() functions
101 b.iter(|| re.replace_all(text, "")); in replace_all()
/third_party/protobuf/src/google/protobuf/stubs/
H A Dstrutil.cc128 // and append the result to "res". If replace_all is false,
133 const string& newsub, bool replace_all, in StringReplace()
150 } while (replace_all); in StringReplace()
164 const string& newsub, bool replace_all) { in StringReplace()
166 StringReplace(s, oldsub, newsub, replace_all, &ret); in StringReplace()
132 StringReplace(const string& s, const string& oldsub, const string& newsub, bool replace_all, string* res) StringReplace() argument
163 StringReplace(const string& s, const string& oldsub, const string& newsub, bool replace_all) StringReplace() argument
H A Dstrutil.h208 const string& newsub, bool replace_all);
/third_party/rust/crates/aho-corasick/src/
H A Dahocorasick.rs82 /// let result = ac.replace_all(haystack, replace_with);
426 /// let result = ac.replace_all(haystack, &["x", "y", "z"]);
429 pub fn replace_all<B>(&self, haystack: &str, replace_with: &[B]) -> String in replace_all() functions
436 "replace_all requires a replacement for every pattern \ in replace_all()

Completed in 12 milliseconds