Lines Matching defs:pattern
225 MessageFormat* pattern = ((MessageFormat**)countToPattern->get(count))[fStyle];
228 return pattern->format(formattable, 1, toAppendTo, pos, status);
271 MessageFormat* pattern = patterns[style];
276 pattern->parseObject(source, parsed, pos);
284 if (pattern->getArgTypeCount() != 0) {
285 // pattern with Number as beginning, such as "{0} d".
306 if (pattern->getArgTypeCount() != 0) {
321 * Result number could be null for the pattern without number pattern.
322 * such as unit pattern in Arabic.
483 const UChar* pattern;
487 // resource of count to pattern
488 pattern = ures_getNextString(countsToPatternRB, &ptLength,
493 MessageFormat* messageFormat = new MessageFormat(pattern, fLocale, err);
543 // for each plural rule, following is unit pattern fall-back rule:
545 // look for its unit pattern in its locale tree.
546 // if pattern is not found in its own locale, such as de_DE,
547 // look for the pattern in its parent, such as de,
549 // if the pattern is not found in root either,
551 // look for the pattern of "other" in the locale tree:
556 // Following is consistency check to create pattern for each
593 // srcPluralCount is the original plural count on which the pattern is
596 // For example, to search for pattern for ""one" hour",
598 // if the pattern is not found even in root, fallback to
618 // look for pattern for srcPluralCount in locale tree
624 const UChar* pattern;
626 pattern = ures_getStringByKeyWithFallback(countsToPatternRB, searchPluralCount, &ptLength, &status);
629 MessageFormat* messageFormat = new MessageFormat(pattern, fLocale, err);
665 // if not found the pattern for this plural count at all,
739 MessageFormat** pattern = (MessageFormat**)keyTok.pointer;
740 pattern[kFull]->setFormat(0, format);
741 pattern[kAbbreviate]->setFormat(0, format);