Lines Matching refs:ReplacementPart
94 struct ReplacementPart { struct in v8::internal::CompiledReplacement
95 static inline ReplacementPart SubjectMatch() { in SubjectMatch() argument
96 return ReplacementPart(SUBJECT_CAPTURE, 0); in SubjectMatch()
98 static inline ReplacementPart SubjectCapture(int capture_index) { in SubjectCapture() argument
99 return ReplacementPart(SUBJECT_CAPTURE, capture_index); in SubjectCapture()
101 static inline ReplacementPart SubjectPrefix() { in SubjectPrefix() argument
102 return ReplacementPart(SUBJECT_PREFIX, 0); in SubjectPrefix()
104 static inline ReplacementPart SubjectSuffix(int subject_length) { in SubjectSuffix() argument
105 return ReplacementPart(SUBJECT_SUFFIX, subject_length); in SubjectSuffix()
107 static inline ReplacementPart ReplacementString() { in ReplacementString() argument
108 return ReplacementPart(REPLACEMENT_STRING, 0); in ReplacementString()
110 static inline ReplacementPart EmptyReplacement() { in EmptyReplacement() argument
111 return ReplacementPart(EMPTY_REPLACEMENT, 0); in EmptyReplacement()
113 static inline ReplacementPart ReplacementSubString(int from, int to) { in ReplacementSubString() argument
116 return ReplacementPart(-from, to); in ReplacementSubString()
121 ReplacementPart(int tag, int data) : tag(tag), data(data) { in ReplacementPart() argument
144 bool ParseReplacementPattern(ZoneChunkList<ReplacementPart>* parts, in ParseReplacementPattern()
166 ReplacementPart::ReplacementSubString(last, next_index)); in ParseReplacementPattern()
176 parts->push_back(ReplacementPart::ReplacementSubString(last, i)); in ParseReplacementPattern()
178 parts->push_back(ReplacementPart::SubjectPrefix()); in ParseReplacementPattern()
184 parts->push_back(ReplacementPart::ReplacementSubString(last, i)); in ParseReplacementPattern()
186 parts->push_back(ReplacementPart::SubjectSuffix(subject_length)); in ParseReplacementPattern()
192 parts->push_back(ReplacementPart::ReplacementSubString(last, i)); in ParseReplacementPattern()
194 parts->push_back(ReplacementPart::SubjectMatch()); in ParseReplacementPattern()
228 ReplacementPart::ReplacementSubString(last, i)); in ParseReplacementPattern()
231 parts->push_back(ReplacementPart::SubjectCapture(capture_ref)); in ParseReplacementPattern()
282 parts->push_back(ReplacementPart::ReplacementSubString(last, i)); in ParseReplacementPattern()
286 ? ReplacementPart::EmptyReplacement() in ParseReplacementPattern()
287 : ReplacementPart::SubjectCapture(capture_index)); in ParseReplacementPattern()
303 parts->push_back(ReplacementPart::ReplacementSubString(last, length)); in ParseReplacementPattern()
309 ZoneChunkList<ReplacementPart> parts_;
346 for (ReplacementPart& part : parts_) { in Compile()
369 for (ReplacementPart& part : parts_) { in Apply()