Home
last modified time | relevance | path

Searched refs:replace_with (Results 1 - 21 of 21) sorted by relevance

/third_party/rust/crates/aho-corasick/src/
H A Dahocorasick.rs79 /// let replace_with = &["sloth", "grey", "slow"];
82 /// let result = ac.replace_all(haystack, replace_with);
400 /// Replace all matches with a corresponding value in the `replace_with`
406 /// replaced by `replace_with[2]`.
410 /// This panics when `replace_with.len()` does not equal the total number
429 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()
448 /// `replace_with` slice given. Matches correspond to the same matches as
453 /// replaced by `replace_with[
[all...]
/third_party/gn/src/base/strings/
H A Dstring_util.cc198 std::basic_string_view<typename StringType::value_type> replace_with,
203 const std::u16string& replace_with, in ReplaceChars()
205 return ReplaceCharsT(input, replace_chars, std::u16string_view(replace_with), in ReplaceChars()
211 const std::string& replace_with, in ReplaceChars()
213 return ReplaceCharsT(input, replace_chars, std::string_view(replace_with), in ReplaceChars()
651 std::basic_string_view<typename StringType::value_type> replace_with, in DoReplaceMatchesAfterOffset()
666 const size_t replace_length = replace_with.length(); in DoReplaceMatchesAfterOffset()
668 str->replace(first_match, find_length, replace_with.data(), replace_length); in DoReplaceMatchesAfterOffset()
678 CharTraits::copy(buffer + offset, replace_with.data(), replace_length); in DoReplaceMatchesAfterOffset()
723 str->append(replace_with in DoReplaceMatchesAfterOffset()
201 ReplaceChars(const std::u16string& input, std::u16string_view replace_chars, const std::u16string& replace_with, std::u16string* output) ReplaceChars() argument
209 ReplaceChars(const std::string& input, std::string_view replace_chars, const std::string& replace_with, std::string* output) ReplaceChars() argument
647 DoReplaceMatchesAfterOffset( StringType* str, size_t initial_offset, Matcher matcher, std::basic_string_view<typename StringType::value_type> replace_with, ReplaceType replace_type) DoReplaceMatchesAfterOffset() argument
791 ReplaceCharsT( const StringType& input, std::basic_string_view<typename StringType::value_type> find_any_of_these, std::basic_string_view<typename StringType::value_type> replace_with, StringType* output) ReplaceCharsT() argument
805 ReplaceFirstSubstringAfterOffset(std::u16string* str, size_t start_offset, std::u16string_view find_this, std::u16string_view replace_with) ReplaceFirstSubstringAfterOffset() argument
814 ReplaceFirstSubstringAfterOffset(std::string* str, size_t start_offset, std::string_view find_this, std::string_view replace_with) ReplaceFirstSubstringAfterOffset() argument
823 ReplaceSubstringsAfterOffset(std::u16string* str, size_t start_offset, std::u16string_view find_this, std::u16string_view replace_with) ReplaceSubstringsAfterOffset() argument
832 ReplaceSubstringsAfterOffset(std::string* str, size_t start_offset, std::string_view find_this, std::string_view replace_with) ReplaceSubstringsAfterOffset() argument
[all...]
H A Dstring_util.h134 // |replace_with|. Each character in |replace_chars| will be replaced with
135 // the |replace_with| string. Returns true if any characters were replaced.
140 const std::u16string& replace_with,
144 const std::string& replace_with,
311 // |find_this| with |replace_with|.
315 std::u16string_view replace_with);
319 std::string_view replace_with);
322 // instances of |find_this| with |replace_with|.
330 std::u16string_view replace_with);
334 std::string_view replace_with);
[all...]
/third_party/googletest/googletest/scripts/
H A 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/
H A Dopt_constant_folding.cpp170 param_rval->replace_with(new_param); in visit_enter()
181 ir->replace_with(assignment); in visit_enter()
H A 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()
H A 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), new (ir) ir_constant(false))); in visit()
H A Dlower_discard.cpp163 ir->replace_with(assignment); in replace_discard()
H A 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()
H A Dlower_vec_index_to_cond_assign.cpp149 param->replace_with(new_param); in visit_enter()
H A Dlower_distance.cpp207 ir->replace_with(*new_var); in visit()
556 actual_param->replace_with( in visit_leave()
H A Dir_rvalue_visitor.cpp132 param->replace_with(new_param); in rvalue_visit()
H A Dlist.h103 void replace_with(exec_node *replacement);
247 inline void exec_node::replace_with(exec_node *replacement) in replace_with() function in exec_node
H A Dopt_tree_grafting.cpp220 ir->replace_with(new_ir); in visit_enter()
H A 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()
H A Dopt_constant_propagation.cpp333 param->replace_with(new_param); in visit_enter()
H A Dlower_precision.cpp1321 actual_node->replace_with(new(mem_ctx) ir_dereference_variable(new_var)); in visit_enter()
/third_party/mesa3d/src/gallium/drivers/r600/sb/
H A Dsb_bc_parser.cpp778 c->replace_with(rep); in prepare_ir()
785 c->replace_with(dep); in prepare_ir()
H A Dsb_ir.cpp232 void node::replace_with(node* n) { in replace_with() function in r600_sb::node
H A Dsb_ir.h795 void replace_with(node *n);
/third_party/rust/crates/memchr/bench/data/code/
H A Drust-library.rs17783 pub fn replace_range<R>(&mut self, range: R, replace_with: &str) in replace_range()
17810 unsafe { self.as_mut_vec() }.splice((start, end), replace_with.bytes()); in replace_range()
[all...]

Completed in 63 milliseconds