Lines Matching refs:matches
330 int matches = pattern.TryMatch(*str, 0, UNANCHORED, true, vec, kVecSize);
331 if (matches == 0)
335 if (!pattern.Rewrite(&s, rewrite, *str, vec, matches))
358 // and with a flag saying that this time, ignore empty matches.
364 int matches;
366 matches = pattern.TryMatch(*str, start, ANCHOR_START, false,
368 if (matches <= 0) {
376 matches = pattern.TryMatch(*str, start, UNANCHORED, true, vec, kVecSize);
377 if (matches <= 0)
385 pattern.Rewrite(&out, rewrite, *str, vec, matches);
405 int matches = pattern.TryMatch(text, 0, UNANCHORED, true, vec, kVecSize);
406 if (matches == 0)
409 return pattern.Rewrite(out, rewrite, text, vec, matches);
561 int matches = TryMatch(text, 0, anchor, true, vec, vecsize);
562 assert(matches >= 0); // TryMatch never returns negatives
563 if (matches == 0)
578 // We do not need (can not do) any more checks on the value of 'matches' here
670 SStringPrintf(error, "Rewrite schema requests %d matches, "