Home
last modified time | relevance | path

Searched refs:replace_with (Results 1 – 23 of 23) sorted by relevance

/third_party/cef/tools/
Dgypi_to_gn.py146 def ReplaceSubstrings(values, search_for, replace_with): argument
153 return values.replace(search_for, replace_with)
156 return [ReplaceSubstrings(v, search_for, replace_with) for v in values]
162 new_key = ReplaceSubstrings(key, search_for, replace_with)
163 new_value = ReplaceSubstrings(value, search_for, replace_with)
/third_party/gn/src/base/strings/
Dstring_util.cc180 std::basic_string_view<typename StringType::value_type> replace_with,
185 const std::u16string& replace_with, in ReplaceChars() argument
187 return ReplaceCharsT(input, replace_chars, std::u16string_view(replace_with), in ReplaceChars()
193 const std::string& replace_with, in ReplaceChars() argument
195 return ReplaceCharsT(input, replace_chars, std::string_view(replace_with), in ReplaceChars()
658 std::basic_string_view<typename StringType::value_type> replace_with, in DoReplaceMatchesAfterOffset() argument
673 const size_t replace_length = replace_with.length(); in DoReplaceMatchesAfterOffset()
675 str->replace(first_match, find_length, replace_with.data(), replace_length); in DoReplaceMatchesAfterOffset()
685 CharTraits::copy(buffer + offset, replace_with.data(), replace_length); in DoReplaceMatchesAfterOffset()
730 str->append(replace_with.data(), replace_length); in DoReplaceMatchesAfterOffset()
[all …]
Dstring_util.h140 const std::u16string& replace_with,
144 const std::string& replace_with,
325 std::u16string_view replace_with);
329 std::string_view replace_with);
340 std::u16string_view replace_with);
344 std::string_view replace_with);
/third_party/rust/crates/aho-corasick/src/
Dahocorasick.rs429 pub fn replace_all<B>(&self, haystack: &str, replace_with: &[B]) -> String in replace_all()
434 replace_with.len(), in replace_all()
441 dst.push_str(replace_with[mat.pattern()].as_ref()); in replace_all()
479 replace_with: &[B], in replace_all_bytes()
485 replace_with.len(), in replace_all_bytes()
492 dst.extend(replace_with[mat.pattern()].as_ref()); in replace_all_bytes()
549 mut replace_with: F, in replace_all_with()
557 if !replace_with(&mat, &haystack[mat.start()..mat.end()], dst) { in replace_all_with()
615 mut replace_with: F, in replace_all_with_bytes()
623 if !replace_with(&mat, &haystack[mat.start()..mat.end()], dst) { in replace_all_with_bytes()
[all …]
/third_party/googletest/googletest/scripts/
Drelease_docs.py115 self.replace_with = r'\1%s\2\3' % (self.version_prefix,)
144 new_text = self.search_for_re.sub(self.replace_with, text)
/third_party/mesa3d/src/compiler/glsl/
Dopt_constant_folding.cpp170 param_rval->replace_with(new_param); in visit_enter()
181 ir->replace_with(assignment); in visit_enter()
Dlower_tess_level.cpp128 ir->replace_with(new_tess_level_outer_var); in visit()
145 ir->replace_with(new_tess_level_inner_var); in visit()
410 actual_param->replace_with( in visit_leave()
Dlower_jumps.cpp335 ir->replace_with(new(ir) ir_loop_jump(ir_loop_jump::jump_break)); in lower_return_unconditionally()
585 jumps[lower]->replace_with(lowered); in visit()
609 …jumps[lower]->replace_with(new(ir) ir_assignment(new (ir) ir_dereference_variable(execute_flag), n… in visit()
Dopt_function_inlining.cpp92 ret->replace_with(new(ctx) ir_assignment(lhs, ret->value)); in replace_return_with_assignment()
452 param->replace_with(new_param); in visit_leave()
Dlower_discard.cpp163 ir->replace_with(assignment); in replace_discard()
Dlower_vec_index_to_cond_assign.cpp149 param->replace_with(new_param); in visit_enter()
Dlower_distance.cpp207 ir->replace_with(*new_var); in visit()
556 actual_param->replace_with( in visit_leave()
Dir_rvalue_visitor.cpp132 param->replace_with(new_param); in rvalue_visit()
Dlist.h103 void replace_with(exec_node *replacement);
247 inline void exec_node::replace_with(exec_node *replacement) in replace_with() function
Dopt_tree_grafting.cpp220 ir->replace_with(new_ir); in visit_enter()
Dast_function.cpp516 actual->replace_with(deref_tmp_2); in fix_parameter()
571 actual->replace_with(converted); in generate_call()
1130 from->replace_with(result); in implicitly_convert_component()
2373 ir->replace_with(result); in hir()
Dopt_constant_propagation.cpp333 param->replace_with(new_param); in visit_enter()
Dlower_precision.cpp1321 actual_node->replace_with(new(mem_ctx) ir_dereference_variable(new_var)); in visit_enter()
/third_party/rust/crates/aho-corasick/
DREADME.md92 let replace_with = &["sloth", "grey", "slow"];
100 ac.stream_replace_all(rdr.as_bytes(), &mut wtr, replace_with)
/third_party/mesa3d/src/gallium/drivers/r600/sb/
Dsb_bc_parser.cpp778 c->replace_with(rep); in prepare_ir()
785 c->replace_with(dep); in prepare_ir()
Dsb_ir.cpp232 void node::replace_with(node* n) { in replace_with() function in r600_sb::node
Dsb_ir.h795 void replace_with(node *n);
/third_party/rust/crates/memchr/bench/data/code/
Drust-library.rs17783 pub fn replace_range<R>(&mut self, range: R, replace_with: &str)
17810 unsafe { self.as_mut_vec() }.splice((start, end), replace_with.bytes());
49356 pub fn splice<R, I>(&mut self, range: R, replace_with: I) -> Splice<'_, I::IntoIter, A>
49361 Splice { drain: self.drain(range), replace_with: replace_with.into_iter() }
49981 pub(super) replace_with: I,
50014 self.drain.vec.as_mut().extend(self.replace_with.by_ref());
50019 if !self.drain.fill(&mut self.replace_with) {
50025 let (lower_bound, _upper_bound) = self.replace_with.size_hint();
50028 if !self.drain.fill(&mut self.replace_with) {
50035 let mut collected = self.replace_with.by_ref().collect::<Vec<I::Item>>().into_iter();
[all …]