Lines Matching refs:match
216 * set, or otherwise can match multiple keys, the index value is -1.
221 // match any key.
236 * then it will match any key.
240 // If there is neither then we match any key; return true.
329 * Attempt a match and replacement at the given position. Return
330 * the degree of match between this rule and the given text. The
331 * degree of match may be mismatch, a partial match, or a full
332 * match. A mismatch means at least one character of the text
333 * does not match the context or key. A partial match means some
334 * context and key characters match, but the text is not long
335 * enough to match all of them. A full match means all context
336 * and key characters match.
338 * If a full match is obtained, perform a replacement, update pos,
354 // match. Another way to do this is to have the match method
355 // create a match result struct with relevant offsets, and to pass
358 // ============================ MATCH ===========================
360 // Reset segment match data
381 // always in the BMP and because we are doing a literal match
386 UMatchDegree match;
388 // Start reverse match at char before pos.start
392 match = anteContext->matches(text, oText, anteLimit, FALSE);
393 if (match != U_MATCH) {
411 match = key->matches(text, oText, pos.limit, incremental);
412 if (match != U_MATCH) {
413 return match;
424 // pos.limit -- this is a partial match.
428 match = postContext->matches(text, oText, pos.contextLimit, incremental);
429 if (match != U_MATCH) {
430 return match;
447 // We have a full match. The key is between pos.start and