/external/python/cffi/cffi/ |
D | model.py | 12 def qualify(quals, replace_with): argument 14 replace_with = ' const ' + replace_with.lstrip() 16 replace_with = ' volatile ' + replace_with.lstrip() 21 replace_with = ' __restrict ' + replace_with.lstrip() 22 return replace_with 29 def get_c_name(self, replace_with='', context='a C file', quals=0): argument 33 replace_with = replace_with.strip() 34 if replace_with: 35 if replace_with.startswith('*') and '&[' in result: 36 replace_with = '(%s)' % replace_with [all …]
|
D | api.py | 401 def getctype(self, cdecl, replace_with=''): argument 409 replace_with = replace_with.strip() 410 if (replace_with.startswith('*') 412 replace_with = '(%s)' % replace_with 413 elif replace_with and not replace_with[0] in '[(': 414 replace_with = ' ' + replace_with 415 return self._backend.getcname(cdecl, replace_with)
|
/external/libchrome/build/ |
D | gypi_to_gn.py | 132 def ReplaceSubstrings(values, search_for, replace_with): argument 139 return values.replace(search_for, replace_with) 142 return [ReplaceSubstrings(v, search_for, replace_with) for v in values] 148 new_key = ReplaceSubstrings(key, search_for, replace_with) 149 new_value = ReplaceSubstrings(value, search_for, replace_with)
|
/external/libchrome/base/strings/ |
D | string_util.cc | 251 BasicStringPiece<StringType> replace_with, 256 const string16& replace_with, in ReplaceChars() argument 258 return ReplaceCharsT(input, replace_chars, StringPiece16(replace_with), in ReplaceChars() 264 const std::string& replace_with, in ReplaceChars() argument 266 return ReplaceCharsT(input, replace_chars, StringPiece(replace_with), output); in ReplaceChars() 729 BasicStringPiece<StringType> replace_with, in DoReplaceMatchesAfterOffset() argument 744 const size_t replace_length = replace_with.length(); in DoReplaceMatchesAfterOffset() 746 str->replace(first_match, find_length, replace_with.data(), replace_length); in DoReplaceMatchesAfterOffset() 756 CharTraits::copy(buffer + offset, replace_with.data(), replace_length); in DoReplaceMatchesAfterOffset() 801 str->append(replace_with.data(), replace_length); in DoReplaceMatchesAfterOffset() [all …]
|
D | string_util.h | 190 const string16& replace_with, 194 const std::string& replace_with, 382 StringPiece16 replace_with); 387 StringPiece replace_with); 399 StringPiece16 replace_with); 404 StringPiece replace_with);
|
D | string_util_unittest.cc | 591 StringPiece replace_with; in TEST() member 630 ASCIIToUTF16(scenario.replace_with)); in TEST() 639 scenario.find_this, scenario.replace_with); in TEST() 650 scenario.find_this, scenario.replace_with); in TEST() 660 const char* replace_with; in TEST() member 680 ASCIIToUTF16(cases[i].replace_with)); in TEST() 1209 const char* replace_with; in TEST() member 1247 scenario.replace_with, &output); in TEST() 1257 scenario.replace_with, &input_output); in TEST() 1269 scenario.replace_with, &input_output); in TEST()
|
/external/rust/crates/aho-corasick/src/ |
D | ahocorasick.rs | 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() 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 …]
|
/external/python/cffi/c/ |
D | ffi_obj.c | 618 char *p, *replace_with = ""; in ffi_getctype() local 628 &c_decl, &replace_with)) in ffi_getctype() 635 while (replace_with[0] != 0 && isspace(replace_with[0])) in ffi_getctype() 636 replace_with++; in ffi_getctype() 637 replace_with_len = strlen(replace_with); in ffi_getctype() 638 while (replace_with_len > 0 && isspace(replace_with[replace_with_len - 1])) in ffi_getctype() 641 add_paren = (replace_with[0] == '*' && in ffi_getctype() 644 replace_with[0] != '[' && replace_with[0] != '('); in ffi_getctype() 655 memcpy(p, replace_with, replace_with_len); in ffi_getctype()
|
/external/googletest/googletest/scripts/ |
D | release_docs.py | 115 self.replace_with = r'\1%s\2\3' % (self.version_prefix,) 144 new_text = self.search_for_re.sub(self.replace_with, text)
|
/external/selinux/libsemanage/src/ |
D | genhomedircon.c | 120 const char *replace_with; member 526 repl[i].replace_with, retval, 0); in replace_all() 687 {.search_for = TEMPLATE_HOME_DIR,.replace_with = user->home}, in write_home_dir_context() 688 {.search_for = TEMPLATE_ROLE,.replace_with = user->prefix}, in write_home_dir_context() 707 {.search_for = TEMPLATE_HOME_ROOT,.replace_with = homedir}, in write_home_root_context() 719 {.search_for = TEMPLATE_USERNAME,.replace_with = user->name}, in write_username_context() 720 {.search_for = TEMPLATE_USERID,.replace_with = user->uid}, in write_username_context() 721 {.search_for = TEMPLATE_ROLE,.replace_with = user->prefix}, in write_username_context() 732 {.search_for = TEMPLATE_USER,.replace_with = user->name}, in write_user_context() 733 {.search_for = TEMPLATE_ROLE,.replace_with = user->prefix}, in write_user_context()
|
/external/mesa3d/src/compiler/glsl/ |
D | opt_constant_folding.cpp | 187 param_rval->replace_with(new_param); in visit_enter() 198 ir->replace_with(assignment); in visit_enter()
|
D | lower_tess_level.cpp | 128 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()
|
D | opt_conditional_discard.cpp | 83 ir->replace_with(discard); in visit_leave()
|
D | lower_jumps.cpp | 350 ir->replace_with(new(ir) ir_loop_jump(ir_loop_jump::jump_break)); in lower_return_unconditionally() 376 ir->replace_with(create_lowered_break()); in lower_break_unconditionally() 649 jumps[lower]->replace_with(lowered); in visit() 685 …jumps[lower]->replace_with(new(ir) ir_assignment(new (ir) ir_dereference_variable(execute_flag), n… in visit()
|
D | opt_dead_builtin_varyings.cpp | 413 var->replace_with(this->new_color[i]); in visit() 417 var->replace_with(this->new_backcolor[i]); in visit() 422 var->replace_with(this->new_fog); in visit()
|
D | lower_discard.cpp | 163 ir->replace_with(assignment); in replace_discard()
|
D | opt_function_inlining.cpp | 92 ret->replace_with(new(ctx) ir_assignment(lhs, ret->value)); in replace_return_with_assignment() 452 param->replace_with(new_param); in visit_leave()
|
D | lower_vec_index_to_cond_assign.cpp | 208 param->replace_with(new_param); in visit_enter()
|
D | lower_distance.cpp | 207 ir->replace_with(*new_var); in visit() 556 actual_param->replace_with( in visit_leave()
|
/external/llvm-project/openmp/runtime/src/ |
D | kmp_str.h | 111 void __kmp_str_replace(char *str, char search_for, char replace_with);
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | all_reduce_combiner.cc | 99 auto replace_with = HloInstruction::CreateGetTupleElement( in CombineAllReduces() local 102 to_combine[i], std::move(replace_with))); in CombineAllReduces()
|
/external/llvm-project/lldb/packages/Python/lldbsuite/test/make/ |
D | Makefile.rules | 346 replace_with = $(strip $(if $(findstring $(3),$(CC_LASTWORD)), \ 351 replace_cc_with = $(call replace_with,$(1),$(CC),$(CLANG_OR_GCC)) 353 replace_cc_with = $(join $(dir $(CC)),$(call replace_with,$(1),$(notdir $(CC)),$(CLANG_OR_GCC)))
|
/external/rust/crates/bstr/src/ |
D | ext_vec.rs | 842 fn replace_range<R, B>(&mut self, range: R, replace_with: B) in replace_range() 847 self.as_vec_mut().splice(range, replace_with.as_ref().iter().cloned()); in replace_range()
|
/external/rust/crates/aho-corasick/ |
D | README.md | 98 let replace_with = &["sloth", "grey", "slow"]; 106 ac.stream_replace_all(rdr.as_bytes(), &mut wtr, replace_with)
|
/external/rust/crates/intrusive-collections/src/ |
D | linked_list.rs | 298 unsafe fn replace_with<T: LinkedListOps>(link_ops: &mut T, ptr: T::LinkPtr, new: T::LinkPtr) { in replace_with() function 603 pub fn replace_with( 618 replace_with(self.list.adapter.link_ops_mut(), current, new); 1305 cur.replace_with(a.clone()).unwrap_err().as_ref() as *const _, 1359 cur.replace_with(a.clone()).unwrap().as_ref() as *const _, 1367 cur.replace_with(c.clone()).unwrap().as_ref() as *const _,
|