Home | History | Annotate | Download | only in i18n

Lines Matching refs:pattern

209                 MessageFormat* pattern = patterns[style];
214 pattern->parseObject(source, parsed, pos);
222 if (pattern->getArgTypeCount() != 0) {
239 if (pattern->getArgTypeCount() != 0) {
254 * Result number could be null for the pattern without number pattern.
255 * such as unit pattern in Arabic.
418 UnicodeString pattern = value.getUnicodeString(errorCode);
427 pattern, timeUnitFormatObj->getLocale(errorCode), errorCode), errorCode);
491 // for each plural rule, following is unit pattern fall-back rule:
493 // look for its unit pattern in its locale tree.
494 // if pattern is not found in its own locale, such as de_DE,
495 // look for the pattern in its parent, such as de,
497 // if the pattern is not found in root either,
499 // look for the pattern of "other" in the locale tree:
504 // Following is consistency check to create pattern for each
540 // srcPluralCount is the original plural count on which the pattern is
543 // For example, to search for pattern for ""one" hour",
545 // if the pattern is not found even in root, fallback to
565 // look for pattern for srcPluralCount in locale tree
570 const UChar* pattern;
572 pattern = ures_getStringByKeyWithFallback(countsToPatternRB.getAlias(), searchPluralCount, &ptLength, &status);
576 new MessageFormat(UnicodeString(TRUE, pattern, ptLength), getLocale(err), err), err);
623 // if not found the pattern for this plural count at all,
628 const UChar *pattern = NULL;
630 pattern = DEFAULT_PATTERN_FOR_SECOND;
632 pattern = DEFAULT_PATTERN_FOR_MINUTE;
634 pattern = DEFAULT_PATTERN_FOR_HOUR;
636 pattern = DEFAULT_PATTERN_FOR_WEEK;
638 pattern = DEFAULT_PATTERN_FOR_DAY;
640 pattern = DEFAULT_PATTERN_FOR_MONTH;
642 pattern = DEFAULT_PATTERN_FOR_YEAR;
644 if (pattern != NULL) {
646 new MessageFormat(UnicodeString(TRUE, pattern, -1), getLocale(err), err), err);