Home
last modified time | relevance | path

Searched refs:replacement (Results 1 - 25 of 229) sorted by relevance

12345678910

/third_party/rust/crates/regex/src/
H A Dexpand.rs10 mut replacement: &str, in expand_str()
13 while !replacement.is_empty() { in expand_str()
14 match find_byte(b'$', replacement.as_bytes()) { in expand_str()
17 dst.push_str(&replacement[..i]); in expand_str()
18 replacement = &replacement[i..]; in expand_str()
21 if replacement.as_bytes().get(1).map_or(false, |&b| b == b'$') { in expand_str()
23 replacement = &replacement[2..]; in expand_str()
26 debug_assert!(!replacement in expand_str()
[all...]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_util/
H A DIntermTraverse.cpp539 const NodeUpdateEntry &replacement = mReplacements[ii]; in updateTree() local
540 ASSERT(replacement.parent); in updateTree()
542 replacement.parent->replaceChildNode(replacement.original, replacement.replacement); in updateTree()
548 TIntermTyped *originalAsTyped = replacement.original->getAsTyped(); in updateTree()
550 replacement.replacement ? replacement in updateTree()
577 const NodeReplaceWithMultipleEntry &replacement = mMultiReplacements[ii]; updateTree() local
596 queueReplacement(TIntermNode *replacement, OriginalNode originalStatus) queueReplacement() argument
598 queueReplacementWithParent(getParentNode(), mPath.back(), replacement, originalStatus); queueReplacement() local
601 queueReplacementWithParent(TIntermNode *parent, TIntermNode *original, TIntermNode *replacement, OriginalNode originalStatus) queueReplacementWithParent() argument
610 queueAccessChainReplacement(TIntermTyped *replacement) queueAccessChainReplacement() argument
638 queueReplacementWithParent(getAncestorNode(ancestorIndex), toReplace, replacement, queueAccessChainReplacement() local
[all...]
H A DReplaceVariable.cpp24 ReplaceVariableTraverser(const TVariable *toBeReplaced, const TIntermTyped *replacement) in ReplaceVariableTraverser() argument
27 mReplacement(replacement) in ReplaceVariableTraverser()
110 const TVariable *replacement) in ReplaceVariable()
112 ReplaceVariableTraverser traverser(toBeReplaced, new TIntermSymbol(replacement)); in ReplaceVariable()
138 const TIntermTyped *replacement) in ReplaceVariableWithTyped()
140 ReplaceVariableTraverser traverser(toBeReplaced, replacement); in ReplaceVariableWithTyped()
107 ReplaceVariable(TCompiler *compiler, TIntermBlock *root, const TVariable *toBeReplaced, const TVariable *replacement) ReplaceVariable() argument
135 ReplaceVariableWithTyped(TCompiler *compiler, TIntermBlock *root, const TVariable *toBeReplaced, const TIntermTyped *replacement) ReplaceVariableWithTyped() argument
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dhb-utf.hh43 hb_codepoint_t replacement) in next()
47 * Generates one "replacement" for each ill-formed byte. */ in next()
104 *unicode = replacement; in next()
112 hb_codepoint_t replacement) in prev()
118 if (likely (next (text, end, unicode, replacement) == end)) in prev()
121 *unicode = replacement; in prev()
190 hb_codepoint_t replacement) in next()
214 *unicode = replacement; in next()
222 hb_codepoint_t replacement) in prev()
246 *unicode = replacement; in prev()
[all...]
/third_party/node/deps/v8/src/compiler/
H A Dgraph-reducer.cc37 reduction.replacement()); in Reduce()
108 } else if (reduction.replacement() == node) { in Reduce()
109 // {replacement} == {node} represents an in-place reduction. Rerun in Reduce()
131 << *(reduction.replacement()) << " by reducer " in Reduce()
184 Node* const replacement = reduction.replacement(); in ReduceTop()
185 if (replacement == node) { in ReduceTop()
205 // Check if we have a new replacement. in ReduceTop()
206 if (replacement != node) { in ReduceTop()
207 Replace(node, replacement, max_i in ReduceTop()
212 Replace(Node* node, Node* replacement) Replace() argument
217 Replace(Node* node, Node* replacement, NodeId max_id) Replace() argument
[all...]
H A Dgraph-reducer.h35 explicit Reduction(Node* replacement = nullptr) : replacement_(replacement) {} in Reduction()
37 Node* replacement() const { return replacement_; } in replacement() function in v8::internal::compiler::final
38 bool Changed() const { return replacement() != nullptr; } in Changed()
88 // Replace {node} with {replacement}.
89 virtual void Replace(Node* node, Node* replacement) = 0;
106 void Replace(Node* node, Node* replacement) { in Replace() argument
108 editor_->Replace(node, replacement); in Replace()
171 // Replace {node} with {replacement}.
172 void Replace(Node* node, Node* replacement) fina
[all...]
H A Descape-analysis.cc237 void SetReplacement(Node* replacement) { in SetReplacement() argument
238 replacement_ = replacement; in SetReplacement()
240 replacement ? tracker_->virtual_objects_.Get(replacement) : nullptr; in SetReplacement()
241 if (replacement) { in SetReplacement()
242 TRACE("Set %s#%d as replacement.\n", replacement->op()->mnemonic(), in SetReplacement()
243 replacement->id()); in SetReplacement()
245 TRACE("Set nullptr as replacement.\n"); in SetReplacement()
269 if (Node* replacement in ResolveReplacement()
550 Node* replacement = false_node; LowerCompareMapsWithoutLoad() local
715 Node* replacement = nullptr; ReduceNode() local
867 Node* replacement = tracker_->GetReplacementOf(node); GetReplacementOf() local
[all...]
H A Dvalue-numbering-reducer.cc128 Node* replacement) { in ReplaceIfTypesMatch()
129 // Make sure the replacement has at least as good type as the original node. in ReplaceIfTypesMatch()
130 if (NodeProperties::IsTyped(replacement) && NodeProperties::IsTyped(node)) { in ReplaceIfTypesMatch()
131 Type replacement_type = NodeProperties::GetType(replacement); in ReplaceIfTypesMatch()
140 NodeProperties::SetType(replacement, node_type); in ReplaceIfTypesMatch()
147 return Replace(replacement); in ReplaceIfTypesMatch()
127 ReplaceIfTypesMatch(Node* node, Node* replacement) ReplaceIfTypesMatch() argument
/third_party/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/
H A DFilteredDataTest.java33 CldrValue replacement = in testSimple()
42 return replacement; in testSimple()
51 assertThat(filteredValues).containsExactly(keep, replacement).inOrder(); in testSimple()
55 assertThat(filtered.get(replace.getPath())).isEqualTo(replacement); in testSimple()
62 CldrValue replacement = in testBadReplacementPath()
68 return replacement; in testBadReplacementPath()
75 assertThat(e).hasMessageThat().contains(replacement.toString()); in testBadReplacementPath()
82 CldrValue replacement = in testBadReplacementAttributes()
88 return replacement; in testBadReplacementAttributes()
95 assertThat(e).hasMessageThat().contains(replacement in testBadReplacementAttributes()
[all...]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/apple/
H A DUnfoldShortCircuitAST.cpp32 // be replaced, and creates the corresponding replacement nodes. However,
45 TIntermTernary *replacement = nullptr; in visitBinary() local
50 replacement = UnfoldOR(node->getLeft(), node->getRight()); in visitBinary()
53 replacement = UnfoldAND(node->getLeft(), node->getRight()); in visitBinary()
58 if (replacement) in visitBinary()
60 queueReplacement(replacement, OriginalNode::IS_DROPPED); in visitBinary()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DUnicodeSetSpanner.java17 * <p><b>Note:</b> The counting, deletion, and replacement depend on alternating a {@link SpanCondition} with
224 * Replace all matching spans in sequence by the replacement,
229 * @param replacement
230 * replacement sequence. To delete, use ""
235 public String replaceFrom(CharSequence sequence, CharSequence replacement) { in replaceFrom() argument
236 return replaceFrom(sequence, replacement, CountMethod.MIN_ELEMENTS, SpanCondition.SIMPLE); in replaceFrom()
240 * Replace all matching spans in sequence by replacement, according to the CountMethod, using SpanCondition.SIMPLE.
245 * @param replacement
246 * replacement sequence. To delete, use ""
253 public String replaceFrom(CharSequence sequence, CharSequence replacement, CountMetho argument
273 replaceFrom(CharSequence sequence, CharSequence replacement, CountMethod countMethod, SpanCondition spanCondition) replaceFrom() argument
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
H A DUnicodeSetSpanner.java18 * <p><b>Note:</b> The counting, deletion, and replacement depend on alternating a {@link SpanCondition} with
199 * Replace all matching spans in sequence by the replacement,
204 * @param replacement
205 * replacement sequence. To delete, use ""
208 public String replaceFrom(CharSequence sequence, CharSequence replacement) { in replaceFrom() argument
209 return replaceFrom(sequence, replacement, CountMethod.MIN_ELEMENTS, SpanCondition.SIMPLE); in replaceFrom()
213 * Replace all matching spans in sequence by replacement, according to the CountMethod, using SpanCondition.SIMPLE.
218 * @param replacement
219 * replacement sequence. To delete, use ""
224 public String replaceFrom(CharSequence sequence, CharSequence replacement, CountMetho argument
242 replaceFrom(CharSequence sequence, CharSequence replacement, CountMethod countMethod, SpanCondition spanCondition) replaceFrom() argument
[all...]
/third_party/icu/icu4c/source/common/
H A Dlocid.cpp566 void (*checkReplacement)(const UnicodeString& replacement),
574 // to store the index in the strings for the replacement script.
586 // to store the index in the strings for the replacement script.
597 // to store the index in the strings for the replacement script.
608 // to store the index in the strings for the replacement variant.
619 // to store the index in the strings for the replacement variant.
703 void (*checkReplacement)(const UnicodeString& replacement), in readAlias()
724 ures_getUnicodeStringByKey(res.getAlias(), "replacement", &status); in readAlias()
739 * replacement language.
776 * replacement scrip
696 readAlias( UResourceBundle* alias, UniqueCharStrings* strings, LocalMemory<const char*>& types, LocalMemory<int32_t>& replacementIndexes, int32_t &length, void (*checkType)(const char* type), void (*checkReplacement)(const UnicodeString& replacement), UErrorCode &status) readAlias() argument
[all...]
H A Dlocresdata.cpp94 const char* replacement = NULL; in uloc_getTableStringWithFallback() local
99 replacement = uloc_getCurrentCountryID(itemKey); in uloc_getTableStringWithFallback()
101 replacement = uloc_getCurrentLanguageID(itemKey); in uloc_getTableStringWithFallback()
103 /*pointer comparison is ok since uloc_getCurrentCountryID & uloc_getCurrentLanguageID return the key itself is replacement is not found*/ in uloc_getTableStringWithFallback()
104 if(replacement!=NULL && itemKey != replacement){ in uloc_getTableStringWithFallback()
105 item = ures_getStringByKeyWithFallback(table.getAlias(), replacement, pLength, &errorCode); in uloc_getTableStringWithFallback()
/third_party/skia/third_party/externals/icu/source/common/
H A Dlocid.cpp586 void (*checkReplacement)(const UnicodeString& replacement),
594 // to store the index in the strings for the replacement script.
606 // to store the index in the strings for the replacement script.
617 // to store the index in the strings for the replacement script.
628 // to store the index in the strings for the replacement variant.
639 // to store the index in the strings for the replacement variant.
723 void (*checkReplacement)(const UnicodeString& replacement), in readAlias()
745 ures_getUnicodeStringByKey(res.getAlias(), "replacement", &status); in readAlias()
760 * replacement language.
797 * replacement scrip
716 readAlias( UResourceBundle* alias, UniqueCharStrings* strings, LocalMemory<const char*>& types, LocalMemory<int32_t>& replacementIndexes, int32_t &length, void (*checkType)(const char* type), void (*checkReplacement)(const UnicodeString& replacement), UErrorCode &status) readAlias() argument
[all...]
H A Dlocresdata.cpp94 const char* replacement = NULL; in uloc_getTableStringWithFallback() local
99 replacement = uloc_getCurrentCountryID(itemKey); in uloc_getTableStringWithFallback()
101 replacement = uloc_getCurrentLanguageID(itemKey); in uloc_getTableStringWithFallback()
103 /*pointer comparison is ok since uloc_getCurrentCountryID & uloc_getCurrentLanguageID return the key itself is replacement is not found*/ in uloc_getTableStringWithFallback()
104 if(replacement!=NULL && itemKey != replacement){ in uloc_getTableStringWithFallback()
105 item = ures_getStringByKeyWithFallback(table.getAlias(), replacement, pLength, &errorCode); in uloc_getTableStringWithFallback()
/third_party/node/deps/icu-small/source/common/
H A Dlocid.cpp566 void (*checkReplacement)(const UChar* replacement),
574 // to store the index in the strings for the replacement script.
586 // to store the index in the strings for the replacement script.
597 // to store the index in the strings for the replacement script.
608 // to store the index in the strings for the replacement variant.
619 // to store the index in the strings for the replacement variant.
703 void (*checkReplacement)(const UChar* replacement), in readAlias()
724 ures_getStringByKey(res.getAlias(), "replacement", nullptr, &status); in readAlias()
739 * replacement language.
776 * replacement scrip
696 readAlias( UResourceBundle* alias, UniqueCharStrings* strings, LocalMemory<const char*>& types, LocalMemory<int32_t>& replacementIndexes, int32_t &length, void (*checkType)(const char* type), void (*checkReplacement)(const UChar* replacement), UErrorCode &status) readAlias() argument
[all...]
H A Dlocresdata.cpp96 const char* replacement = nullptr; in uloc_getTableStringWithFallback() local
101 replacement = uloc_getCurrentCountryID(itemKey); in uloc_getTableStringWithFallback()
103 replacement = uloc_getCurrentLanguageID(itemKey); in uloc_getTableStringWithFallback()
105 /*pointer comparison is ok since uloc_getCurrentCountryID & uloc_getCurrentLanguageID return the key itself is replacement is not found*/ in uloc_getTableStringWithFallback()
106 if(replacement!=nullptr && itemKey != replacement){ in uloc_getTableStringWithFallback()
107 item = ures_getStringByKeyWithFallback(table.getAlias(), replacement, pLength, &errorCode); in uloc_getTableStringWithFallback()
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/spec_tools/
H A Dmacro_checker_file.py155 """Create an include directive from an INCLUDE match and a (new or replacement) generated_type."""
518 replacement = match.group(
523 replacement='::pname:',
524 fix=(search, replacement))
550 group='entity_name', replacement=self.makeExtensionLink())
556 replacement=self.makeMacroMarkup(data.macro))
571 group='entity_name', replacement=self.makeExtensionLink(data.entity))
576 replacement=self.makeMacroMarkup(data=data))
825 group='macro', replacement=newMacro, fix=self.makeFix(newMacro=newMacro), see_also=see_also)
867 group='macro', replacement
[all...]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
H A DMonomorphizeUnsupportedFunctions.cpp413 // Add to and possibly replace the function prototype with replacement prototypes.
428 TIntermSequence replacement; variable
431 replacement.push_back(node);
435 replacement.push_back(new TIntermFunctionPrototype(
439 std::move(replacement));
444 // Add to and possibly replace the function definition with replacement definitions.
459 TIntermSequence replacement; variable
462 replacement.push_back(node);
466 replacement.push_back(monomorphizedDefinition);
469 std::move(replacement));
482 TIntermSequence replacement; SortDeclarations() local
[all...]
/third_party/mesa3d/src/gallium/drivers/zink/
H A Dzink_instance.py334 def replace_code(code: str, replacement: dict):
335 for (k, v) in replacement.items():
358 replacement = REPLACEMENTS variable
391 header = replace_code(header, replacement)
396 impl = replace_code(impl, replacement)
/third_party/node/test/fixtures/wpt/streams/transform-streams/
H A Dlipfuzz.any.js37 let replacement = this.substitutions[p1];
38 if (replacement === undefined) {
39 replacement = '';
41 this.lastIndex = offset + replacement.length;
42 return replacement;
/third_party/mesa3d/src/panfrost/bifrost/
H A Dbi_opt_copy_prop.c89 bi_index *replacement = calloc(sizeof(bi_index), ctx->ssa_alloc); in bi_opt_copy_prop() local
98 bi_index chained = replacement[replace.value]; in bi_opt_copy_prop()
104 replacement[ins->dest[0].value] = replace; in bi_opt_copy_prop()
113 bi_index repl = replacement[use.value]; in bi_opt_copy_prop()
123 free(replacement); in bi_opt_copy_prop()
/third_party/skia/third_party/externals/tint/src/utils/
H A Dstring.h25 /// @param replacement the replacement string to use instead of `substr`
26 /// @returns `str` with all occurrences of `substr` replaced with `replacement`
29 const std::string& replacement) { in ReplaceAll()
32 str.replace(pos, substr.length(), replacement); in ReplaceAll()
33 pos += replacement.length(); in ReplaceAll()
27 ReplaceAll(std::string str, const std::string& substr, const std::string& replacement) ReplaceAll() argument
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/translit/
H A DTestUtility.java43 public static String replace(String source, String toBeReplaced, String replacement) { in replace() argument
48 results.append(replacement); in replace()
57 public static String replaceAll(String source, UnicodeSet set, String replacement) { in replaceAll() argument
63 results.append(replacement); in replaceAll()

Completed in 16 milliseconds

12345678910