Lines Matching refs:pattern
87 sprintf(mesg, "skeleton: %s; pattern: %s\n", result, result_1);
339 * the smallest calendar field in pattern,
346 // If the first part in interval pattern is empty,
347 // the 2nd part of it saves the full-pattern used in fall-back.
348 // For a 'real' interval pattern, the first part will never be empty.
367 // break the interval pattern into 2 parts,
476 const UnicodeString pattern = dtpng->getBestPattern(skeleton, status);
480 SimpleDateFormat* dtfmt = new SimpleDateFormat(pattern, locale, status);
524 * For example, interval pattern from "Jan 10, 2007 10:10 am"
530 * For example, interval pattern from "Jan 10, 2007 10:10 am"
534 * 2. even a pattern does not request a certion calendar field,
535 * the interval pattern needs to include such field if such fields are
537 * For example, a pattern/skeleton is "hm", but the interval pattern
617 UnicodeString pattern = fDtpng->getBestPattern(timeSkeleton, status);
622 // the first part of the pattern is empty,
623 // the second part of the pattern is the full-pattern
625 setPatternInfo(UCAL_DATE, NULL, &pattern, fInfo->getDefaultOrder());
626 setPatternInfo(UCAL_MONTH, NULL, &pattern, fInfo->getDefaultOrder());
627 setPatternInfo(UCAL_YEAR, NULL, &pattern, fInfo->getDefaultOrder());
642 UnicodeString pattern = fDtpng->getBestPattern(timeSkeleton, status);
647 // the first part of the pattern is empty,
648 // the second part of the pattern is the full-pattern
650 setPatternInfo(UCAL_DATE, NULL, &pattern, fInfo->getDefaultOrder());
651 setPatternInfo(UCAL_MONTH, NULL, &pattern, fInfo->getDefaultOrder());
652 setPatternInfo(UCAL_YEAR, NULL, &pattern, fInfo->getDefaultOrder());
686 // Need the Date/Time pattern for concatnation the date with
688 // The date/time pattern ( such as {0} {1} ) is saved in
868 * Generate date or time interval pattern from resource,
869 * and set them into the interval pattern locale to this formatter.
880 * 2. there might be no pattern for 'y' differ for skeleton "Md",
887 * TRUE if interval pattern found for the skeleton,
897 // the final interval pattern might include time interval patterns
900 // For year/month/day differ, it falls back to fall-back pattern.
976 UnicodeString pattern = fDtpng->getBestPattern(skeleton, status);
980 setPatternInfo(field, NULL, &pattern, fInfo->getDefaultOrder());
992 // the first part of the pattern is empty,
993 // the second part of the pattern is the full-pattern
1024 const UnicodeString* pattern = &intervalPattern;
1035 pattern = &realPattern;
1042 pattern = &realPattern;
1045 int32_t splitPoint = splitPatternInto2Part(*pattern);
1049 pattern->extract(0, splitPoint, firstPart);
1050 if ( splitPoint < pattern->length() ) {
1051 pattern->extract(splitPoint, pattern->length()-splitPoint, secondPart);
1060 * Generate interval pattern from existing resource
1067 * @param bestSkeleton the best match skeleton which has interval pattern
1077 * @return whether the interval pattern is found
1079 * TRUE if interval pattern is found by
1092 UnicodeString pattern;
1093 fInfo->getIntervalPattern(*bestSkeleton, field, pattern, status);
1094 if ( pattern.isEmpty() ) {
1102 // might not include pattern when am_pm differ,
1106 fInfo->getIntervalPattern(*bestSkeleton, UCAL_HOUR, pattern,status);
1107 if ( !pattern.isEmpty() ) {
1108 setIntervalPattern(field, pattern);
1112 // else, looking for pattern when 'y' differ for 'dMMMM' skeleton,
1113 // first, get best match pattern "MMMd",
1114 // since there is no pattern for 'y' differs for skeleton 'MMMd',
1116 // if found, adjust field width in interval pattern from
1126 fInfo->getIntervalPattern(*extendedBestSkeleton,field,pattern,status);
1127 if ( pattern.isEmpty() && differenceInfo == 0 ) {
1133 fInfo->getIntervalPattern(*tmpBest, field, pattern, status);
1139 if ( !pattern.isEmpty() ) {
1142 adjustFieldWidth(*skeleton, *bestSkeleton, pattern, differenceInfo,
1146 setIntervalPattern(field, pattern);
1163 /* repeatedPattern used to record whether a pattern has already seen.
1164 It is a pattern applies to first calendar if it is first time seen,
1165 otherwise, it is a pattern applies to the second calendar
1181 /* loop through the pattern string character by character looking for
1182 * the first repeated pattern letter, which breaks the interval pattern
1191 // check the repeativeness of pattern letter
1213 // ch is a date-time pattern character
1218 // check last pattern char, distinguish
1317 // loop through the pattern string character by character
1323 // check the repeativeness of pattern letter
1327 // but there is "L" in pattern.
1328 // for skeleton "M+", the pattern might be "...L..."
1355 // ch is a date-time pattern character
1362 // check the repeativeness of pattern letter
1366 // but there is "L" in pattern.
1367 // for skeleton "M+", the pattern might be "...L..."