Home | History | Annotate | Download | only in i18n

Lines Matching refs:r2

247  * Return true if this rule masks another rule.  If r1 masks r2 then
248 * r1 matches any input string that r2 matches. If r1 masks r2 and r2 masks
249 * r1 then r1 == r2. Examples: "a>x" masks "ab>y". "a>x" masks "a[b]>y".
252 UBool TransliterationRule::masks(const TransliterationRule& r2) const {
253 /* Rule r1 masks rule r2 if the string formed of the
258 * r2: aaakkkkkpppp
263 * must be <= the length of r2 to the left; ditto for the
265 * of) the corresponding characters of r2. The superset
270 * mask one another if they are exactly equal, and r2 has
293 int32_t left2 = r2.anteContextLength;
295 int32_t right2 = r2.pattern.length() - left2;
296 int32_t cachedCompare = r2.pattern.compare(left2 - left, len, pattern);
303 keyLength <= r2.keyLength &&
306 return (flags == r2.flags) ||
308 ((r2.flags & ANCHOR_START) && (r2.flags & ANCHOR_END));
313 (right == right2 && keyLength <= r2.keyLength)) &&