Lines Matching +defs:string +defs:match
94 int RegularExpression::match(const String& str, int startFrom, int* matchLength) const
127 // 1 means 1 match; 0 means more than one match. First match is recorded in offsetVector.
137 // Instead, it just searches forwards, multiple times until it finds the last match.
145 pos = match(str, start, &matchLength);
148 // replace last match if this one is later and not a subset of the last match
164 void replace(String& string, const RegularExpression& target, const String& replacement)
167 while (index < static_cast<int>(string.length())) {
169 index = target.match(string, index, &matchLength);
172 string.replace(index, matchLength, replacement);