Home
last modified time | relevance | path

Searched refs:replacements (Results 1 – 25 of 253) sorted by relevance

1234567891011

/third_party/abseil-cpp/absl/strings/
Dstr_replace_test.cc146 std::map<const char *, const char *> replacements; in TEST() local
147 replacements["$who"] = "Bob"; in TEST()
148 replacements["$count"] = "5"; in TEST()
149 replacements["#Noun"] = "Apples"; in TEST()
151 replacements); in TEST()
167 std::map<absl::string_view, absl::string_view> replacements; in TEST() local
168 replacements["$who"] = "Bob"; in TEST()
169 replacements["$count"] = "5"; in TEST()
170 replacements["#Noun"] = "Apples"; in TEST()
172 count = absl::StrReplaceAll(replacements, &s); in TEST()
[all …]
Dstr_replace.h71 replacements);
98 const StrToStrMapping& replacements);
115 replacements,
131 int StrReplaceAll(const StrToStrMapping& replacements, std::string* target);
159 absl::string_view s, const StrToStrMapping& replacements) { in FindSubstitutions() argument
161 subs.reserve(replacements.size()); in FindSubstitutions()
163 for (const auto& rep : replacements) { in FindSubstitutions()
195 const StrToStrMapping& replacements) { in StrReplaceAll() argument
196 auto subs = strings_internal::FindSubstitutions(s, replacements); in StrReplaceAll()
204 int StrReplaceAll(const StrToStrMapping& replacements, std::string* target) { in StrReplaceAll() argument
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dstr_replace_test.cc146 std::map<const char *, const char *> replacements; in TEST() local
147 replacements["$who"] = "Bob"; in TEST()
148 replacements["$count"] = "5"; in TEST()
149 replacements["#Noun"] = "Apples"; in TEST()
151 replacements); in TEST()
167 std::map<absl::string_view, absl::string_view> replacements; in TEST() local
168 replacements["$who"] = "Bob"; in TEST()
169 replacements["$count"] = "5"; in TEST()
170 replacements["#Noun"] = "Apples"; in TEST()
172 count = absl::StrReplaceAll(replacements, &s); in TEST()
[all …]
Dstr_replace.h71 replacements);
98 const StrToStrMapping& replacements);
115 replacements,
131 int StrReplaceAll(const StrToStrMapping& replacements, std::string* target);
159 absl::string_view s, const StrToStrMapping& replacements) { in FindSubstitutions() argument
161 subs.reserve(replacements.size()); in FindSubstitutions()
163 for (const auto& rep : replacements) { in FindSubstitutions()
195 const StrToStrMapping& replacements) { in StrReplaceAll() argument
196 auto subs = strings_internal::FindSubstitutions(s, replacements); in StrReplaceAll()
204 int StrReplaceAll(const StrToStrMapping& replacements, std::string* target) { in StrReplaceAll() argument
[all …]
/third_party/boost/tools/docca/include/docca/
Dcommon.xsl38 <xsl:sequence select="d:perform-replacements($name, $id-replacements)"/>
41 <xsl:function name="d:perform-replacements">
43 <xsl:param name="replacements"/>
44 <xsl:variable name="next" select="head($replacements)"/>
45 <xsl:variable name="rest" select="tail($replacements)"/>
47 … then d:perform-replacements(replace($name, $next/@pattern, $next/@with), $rest)
51 <xsl:variable name="id-replacements" select="$additional-id-replacements, $base-id-replacements"/>
54 <xsl:variable name="additional-id-replacements" as="element(replace)*" select="()"/>
56 <xsl:variable name="base-id-replacements" as="element(replace)+">
78 <xsl:sequence select="d:perform-replacements($name, $param-replacements)"/>
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/preprocessor/
DMacroExpander.cpp226 ASSERT(context->replacements[context->index] == token); in ungetToken()
253 std::vector<Token> replacements; in pushMacro() local
254 if (!expandMacro(*macro, identifier, &replacements)) in pushMacro()
262 context->replacements.swap(replacements); in pushMacro()
264 mTotalTokensInContexts += context->replacements.size(); in pushMacro()
287 mTotalTokensInContexts -= context->replacements.size(); in popMacro()
293 std::vector<Token> *replacements) in expandMacro() argument
295 replacements->clear(); in expandMacro()
304 replacements->assign(macro.replacements.begin(), macro.replacements.end()); in expandMacro()
311 ASSERT(replacements->size() == 1); in expandMacro()
[all …]
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/preprocessor/
DMacroExpander.cpp232 assert(context->replacements[context->index] == token); in ungetToken()
259 std::vector<Token> replacements; in pushMacro() local
260 if (!expandMacro(*macro, identifier, &replacements)) in pushMacro()
268 context->replacements.swap(replacements); in pushMacro()
270 mTotalTokensInContexts += context->replacements.size(); in pushMacro()
293 mTotalTokensInContexts -= context->replacements.size(); in popMacro()
299 std::vector<Token> *replacements) in expandMacro() argument
301 replacements->clear(); in expandMacro()
310 replacements->assign(macro.replacements.begin(), macro.replacements.end()); in expandMacro()
317 assert(replacements->size() == 1); in expandMacro()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/preprocessor/
DMacroExpander.cpp226 ASSERT(context->replacements[context->index] == token); in ungetToken()
253 std::vector<Token> replacements; in pushMacro() local
254 if (!expandMacro(*macro, identifier, &replacements)) in pushMacro()
262 context->replacements.swap(replacements); in pushMacro()
264 mTotalTokensInContexts += context->replacements.size(); in pushMacro()
287 mTotalTokensInContexts -= context->replacements.size(); in popMacro()
293 std::vector<Token> *replacements) in expandMacro() argument
295 replacements->clear(); in expandMacro()
304 replacements->assign(macro.replacements.begin(), macro.replacements.end()); in expandMacro()
311 ASSERT(replacements->size() == 1); in expandMacro()
[all …]
/third_party/boost/libs/xpressive/test/
Dtest_format.cpp17 std::map<std::string, std::string> replacements; variable
24 return replacements[what[1].str()]; in operator ()()
33 std::map<std::string, std::string>::const_iterator where = replacements.find(what[1].str()); in operator ()()
34 if(where != replacements.end()) in operator ()()
45 std::map<std::string, std::string>::const_iterator where = replacements.find(what[1].str()); in operator ()()
46 if(where != replacements.end()) in operator ()()
54 return replacements[what[1].str()]; in format_fun()
59 return replacements[what[1].str()]; in c_format_fun()
64 replacements["X"] = "this"; in test_main()
65 replacements["Y"] = "that"; in test_main()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dscalar_replacement_pass.cpp83 std::vector<Instruction*> replacements; in ReplaceVariable() local
84 if (!CreateReplacementVariables(inst, &replacements)) { in ReplaceVariable()
90 inst, [this, &replacements, &dead](Instruction* user) { in ReplaceVariable()
92 if (ReplaceWholeDebugDeclare(user, replacements)) { in ReplaceVariable()
99 if (ReplaceWholeDebugValue(user, replacements)) { in ReplaceVariable()
108 if (ReplaceWholeLoad(user, replacements)) { in ReplaceVariable()
115 if (ReplaceWholeStore(user, replacements)) { in ReplaceVariable()
123 if (ReplaceAccessChain(user, replacements)) in ReplaceVariable()
156 for (auto var : replacements) { in ReplaceVariable()
170 Instruction* dbg_decl, const std::vector<Instruction*>& replacements) { in ReplaceWholeDebugDeclare() argument
[all …]
Dscalar_replacement_pass.h112 std::vector<Instruction*>* replacements);
156 std::vector<Instruction*>* replacements);
167 std::vector<Instruction*>* replacements);
200 const std::vector<Instruction*>& replacements);
207 const std::vector<Instruction*>& replacements);
215 const std::vector<Instruction*>& replacements);
222 const std::vector<Instruction*>& replacements);
229 const std::vector<Instruction*>& replacements);
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dscalar_replacement_pass.cpp83 std::vector<Instruction*> replacements; in ReplaceVariable() local
84 if (!CreateReplacementVariables(inst, &replacements)) { in ReplaceVariable()
90 inst, [this, &replacements, &dead](Instruction* user) { in ReplaceVariable()
92 if (ReplaceWholeDebugDeclare(user, replacements)) { in ReplaceVariable()
99 if (ReplaceWholeDebugValue(user, replacements)) { in ReplaceVariable()
108 if (ReplaceWholeLoad(user, replacements)) { in ReplaceVariable()
115 if (ReplaceWholeStore(user, replacements)) { in ReplaceVariable()
123 if (ReplaceAccessChain(user, replacements)) in ReplaceVariable()
156 for (auto var : replacements) { in ReplaceVariable()
170 Instruction* dbg_decl, const std::vector<Instruction*>& replacements) { in ReplaceWholeDebugDeclare() argument
[all …]
Dscalar_replacement_pass.h112 std::vector<Instruction*>* replacements);
156 std::vector<Instruction*>* replacements);
167 std::vector<Instruction*>* replacements);
200 const std::vector<Instruction*>& replacements);
207 const std::vector<Instruction*>& replacements);
215 const std::vector<Instruction*>& replacements);
222 const std::vector<Instruction*>& replacements);
229 const std::vector<Instruction*>& replacements);
/third_party/spirv-tools/source/opt/
Dscalar_replacement_pass.cpp78 std::vector<Instruction*> replacements; in ReplaceVariable() local
79 if (!CreateReplacementVariables(inst, &replacements)) { in ReplaceVariable()
85 inst, [this, &replacements, &dead](Instruction* user) { in ReplaceVariable()
87 if (ReplaceWholeDebugDeclare(user, replacements)) { in ReplaceVariable()
94 if (ReplaceWholeDebugValue(user, replacements)) { in ReplaceVariable()
103 if (ReplaceWholeLoad(user, replacements)) { in ReplaceVariable()
110 if (ReplaceWholeStore(user, replacements)) { in ReplaceVariable()
118 if (ReplaceAccessChain(user, replacements)) in ReplaceVariable()
151 for (auto var : replacements) { in ReplaceVariable()
165 Instruction* dbg_decl, const std::vector<Instruction*>& replacements) { in ReplaceWholeDebugDeclare() argument
[all …]
Dscalar_replacement_pass.h112 std::vector<Instruction*>* replacements);
153 std::vector<Instruction*>* replacements);
164 std::vector<Instruction*>* replacements);
197 const std::vector<Instruction*>& replacements);
204 const std::vector<Instruction*>& replacements);
212 const std::vector<Instruction*>& replacements);
219 const std::vector<Instruction*>& replacements);
226 const std::vector<Instruction*>& replacements);
/third_party/mesa3d/src/compiler/glsl/
Dlower_output_reads.cpp48 hash_table *replacements; member in __anon1515edea0111::output_read_remover
81 replacements = _mesa_hash_table_create(NULL, hash_table_var_hash, in output_read_remover()
87 _mesa_hash_table_destroy(replacements, NULL); in ~output_read_remover()
96 hash_entry *entry = _mesa_hash_table_search(replacements, ir->var); in visit()
108 _mesa_hash_table_insert(replacements, ir->var, temp); in visit()
150 hash_table_call_foreach(replacements, emit_return_copy, ir); in visit_leave()
157 hash_table_call_foreach(replacements, emit_return_copy, ir); in visit_leave()
167 hash_table_call_foreach(replacements, emit_main_copy, sig); in visit_leave()
/third_party/typescript_eslint/packages/eslint-plugin-tslint/src/rules/
Dconfig.ts159 const replacements = failure.getFix(); constant
161 return Array.isArray(replacements)
162 ? replacements.map(replacement =>
168 : replacements !== undefined
170 [replacements.start, replacements.end],
171 replacements.text,
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/
DReduceInterfaceBlocks.cpp60 TIntermNode *replacements[] = { in visitDeclarationPre() local
63 return PreResult::Multi(std::begin(replacements), std::end(replacements)); in visitDeclarationPre()
79 TIntermNode *replacements[] = { in visitDeclarationPre() local
82 return PreResult::Multi(std::begin(replacements), std::end(replacements)); in visitDeclarationPre()
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DArrayReturnValueToOutParameter.cpp158 TIntermSequence replacements; in visitAggregate() local
164 replacements.push_back(returnValueDeclaration); in visitAggregate()
168 replacements.push_back(createReplacementCall(node, returnValueSymbol)); in visitAggregate()
170 NodeReplaceWithMultipleEntry(parentBlock, node, replacements)); in visitAggregate()
182 TIntermSequence replacements; in visitBranch() local
194 replacements.push_back(replacementAssignment); in visitBranch()
198 replacements.push_back(replacementBranch); in visitBranch()
201 NodeReplaceWithMultipleEntry(getParentNode()->getAsBlock(), node, replacements)); in visitBranch()
DRewriteRepeatedAssignToSwizzled.cpp72 TIntermSequence replacements; in visitBinary() local
73 replacements.push_back(rightBinary); in visitBinary()
77 replacements.push_back(lastAssign); in visitBinary()
78 mMultiReplacements.push_back(NodeReplaceWithMultipleEntry(parentBlock, node, replacements)); in visitBinary()
DSeparateArrayInitialization.cpp64 TIntermSequence replacements; in visitDeclaration() local
69 replacements.push_back(replacementDeclaration); in visitDeclaration()
74 replacements.push_back(replacementAssignment); in visitDeclaration()
77 NodeReplaceWithMultipleEntry(parentBlock, node, replacements)); in visitDeclaration()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/d3d/
DArrayReturnValueToOutParameter.cpp162 TIntermSequence replacements; in visitAggregate() local
168 replacements.push_back(returnValueDeclaration); in visitAggregate()
172 replacements.push_back(createReplacementCall(node, returnValueSymbol)); in visitAggregate()
173 mMultiReplacements.emplace_back(parentBlock, node, std::move(replacements)); in visitAggregate()
185 TIntermSequence replacements; in visitBranch() local
197 replacements.push_back(replacementAssignment); in visitBranch()
201 replacements.push_back(replacementBranch); in visitBranch()
204 std::move(replacements)); in visitBranch()
/third_party/cJSON/tests/
Dmisc_tests.c285 cJSON replacements[3]; in cjson_replace_item_via_pointer_should_replace_items() local
306 memset(replacements, '\0', sizeof(replacements)); in cjson_replace_item_via_pointer_should_replace_items()
309 TEST_ASSERT_TRUE(cJSON_ReplaceItemViaPointer(array, beginning, &(replacements[0]))); in cjson_replace_item_via_pointer_should_replace_items()
310 TEST_ASSERT_TRUE(replacements[0].prev == end); in cjson_replace_item_via_pointer_should_replace_items()
311 TEST_ASSERT_TRUE(replacements[0].next == middle); in cjson_replace_item_via_pointer_should_replace_items()
312 TEST_ASSERT_TRUE(middle->prev == &(replacements[0])); in cjson_replace_item_via_pointer_should_replace_items()
313 TEST_ASSERT_TRUE(array->child == &(replacements[0])); in cjson_replace_item_via_pointer_should_replace_items()
316 TEST_ASSERT_TRUE(cJSON_ReplaceItemViaPointer(array, middle, &(replacements[1]))); in cjson_replace_item_via_pointer_should_replace_items()
317 TEST_ASSERT_TRUE(replacements[1].prev == &(replacements[0])); in cjson_replace_item_via_pointer_should_replace_items()
318 TEST_ASSERT_TRUE(replacements[1].next == end); in cjson_replace_item_via_pointer_should_replace_items()
[all …]
/third_party/boost/boost/log/expressions/formatters/
Dcsv_decorator.hpp53 static const char* const replacements[] = in get_replacements() local
57 return boost::make_iterator_range(replacements); in get_replacements()
76 static const wchar_t* const replacements[] = in get_replacements() local
80 return boost::make_iterator_range(replacements); in get_replacements()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/gl/
DRewriteRepeatedAssignToSwizzled.cpp77 TIntermSequence replacements; in visitBinary() local
78 replacements.push_back(rightBinary); in visitBinary()
82 replacements.push_back(lastAssign); in visitBinary()
83 mMultiReplacements.emplace_back(parentBlock, node, std::move(replacements)); in visitBinary()

1234567891011