Lines Matching full:matcher
130 const scoped_ptr<RegexMatcher> matcher( in Consume() local
131 utf8_regexp_->matcher(*input->Data(), status)); in Consume()
133 ? matcher->lookingAt(input->position(), status) in Consume()
134 : matcher->find(input->position(), status); in Consume()
146 if (group_index > matcher->groupCount()) { in Consume()
150 UnicodeStringToUtf8String(matcher->group(group_index, status)); in Consume()
153 input->set_position(matcher->end(status)); in Consume()
165 const scoped_ptr<RegexMatcher> matcher( in Match() local
166 utf8_regexp_->matcher(*input.Data(), status)); in Match()
168 ? matcher->matches(input.position(), status) in Match()
169 : matcher->find(input.position(), status); in Match()
173 if (matcher->groupCount() > 0 && matched_string) { in Match()
174 *matched_string = UnicodeStringToUtf8String(matcher->group(1, status)); in Match()
188 const scoped_ptr<RegexMatcher> matcher( in Replace() local
189 utf8_regexp_->matcher(*input.Data(), status)); in Replace()
196 // consistent with the RE2 reg-ex matcher. in Replace()
197 if (!matcher->find()) { in Replace()
200 matcher->appendReplacement(output, in Replace()
205 while (matcher->find()) { in Replace()
206 matcher->appendReplacement( in Replace()
213 matcher->appendTail(output); in Replace()