Lines Matching defs:pattern
85 sprintf(mesg, "skeleton: %s; pattern: %s\n", result, result_1);
337 * the smallest calendar field in pattern,
344 // If the first part in interval pattern is empty,
345 // the 2nd part of it saves the full-pattern used in fall-back.
346 // For a 'real' interval pattern, the first part will never be empty.
365 // break the interval pattern into 2 parts,
474 const UnicodeString pattern = dtpng->getBestPattern(skeleton, status);
478 SimpleDateFormat* dtfmt = new SimpleDateFormat(pattern, locale, status);
522 * For example, interval pattern from "Jan 10, 2007 10:10 am"
528 * For example, interval pattern from "Jan 10, 2007 10:10 am"
532 * 2. even a pattern does not request a certion calendar field,
533 * the interval pattern needs to include such field if such fields are
535 * For example, a pattern/skeleton is "hm", but the interval pattern
615 UnicodeString pattern = fDtpng->getBestPattern(timeSkeleton, status);
620 // the first part of the pattern is empty,
621 // the second part of the pattern is the full-pattern
623 setPatternInfo(UCAL_DATE, NULL, &pattern, fInfo->getDefaultOrder());
624 setPatternInfo(UCAL_MONTH, NULL, &pattern, fInfo->getDefaultOrder());
625 setPatternInfo(UCAL_YEAR, NULL, &pattern, fInfo->getDefaultOrder());
640 UnicodeString pattern = fDtpng->getBestPattern(timeSkeleton, status);
645 // the first part of the pattern is empty,
646 // the second part of the pattern is the full-pattern
648 setPatternInfo(UCAL_DATE, NULL, &pattern, fInfo->getDefaultOrder());
649 setPatternInfo(UCAL_MONTH, NULL, &pattern, fInfo->getDefaultOrder());
650 setPatternInfo(UCAL_YEAR, NULL, &pattern, fInfo->getDefaultOrder());
684 // Need the Date/Time pattern for concatnation the date with
686 // The date/time pattern ( such as {0} {1} ) is saved in
859 * Generate date or time interval pattern from resource,
860 * and set them into the interval pattern locale to this formatter.
871 * 2. there might be no pattern for 'y' differ for skeleton "Md",
878 * TRUE if interval pattern found for the skeleton,
888 // the final interval pattern might include time interval patterns
891 // For year/month/day differ, it falls back to fall-back pattern.
967 UnicodeString pattern = fDtpng->getBestPattern(skeleton, status);
971 setPatternInfo(field, NULL, &pattern, fInfo->getDefaultOrder());
983 // the first part of the pattern is empty,
984 // the second part of the pattern is the full-pattern
1015 const UnicodeString* pattern = &intervalPattern;
1026 pattern = &realPattern;
1033 pattern = &realPattern;
1036 int32_t splitPoint = splitPatternInto2Part(*pattern);
1040 pattern->extract(0, splitPoint, firstPart);
1041 if ( splitPoint < pattern->length() ) {
1042 pattern->extract(splitPoint, pattern->length()-splitPoint, secondPart);
1051 * Generate interval pattern from existing resource
1058 * @param bestSkeleton the best match skeleton which has interval pattern
1068 * @return whether the interval pattern is found
1070 * TRUE if interval pattern is found by
1083 UnicodeString pattern;
1084 fInfo->getIntervalPattern(*bestSkeleton, field, pattern, status);
1085 if ( pattern.isEmpty() ) {
1093 // might not include pattern when am_pm differ,
1097 fInfo->getIntervalPattern(*bestSkeleton, UCAL_HOUR, pattern,status);
1098 if ( !pattern.isEmpty() ) {
1099 setIntervalPattern(field, pattern);
1103 // else, looking for pattern when 'y' differ for 'dMMMM' skeleton,
1104 // first, get best match pattern "MMMd",
1105 // since there is no pattern for 'y' differs for skeleton 'MMMd',
1107 // if found, adjust field width in interval pattern from
1117 fInfo->getIntervalPattern(*extendedBestSkeleton,field,pattern,status);
1118 if ( pattern.isEmpty() && differenceInfo == 0 ) {
1124 fInfo->getIntervalPattern(*tmpBest, field, pattern, status);
1130 if ( !pattern.isEmpty() ) {
1133 adjustFieldWidth(*skeleton, *bestSkeleton, pattern, differenceInfo,
1137 setIntervalPattern(field, pattern);
1154 /* repeatedPattern used to record whether a pattern has already seen.
1155 It is a pattern applies to first calendar if it is first time seen,
1156 otherwise, it is a pattern applies to the second calendar
1172 /* loop through the pattern string character by character looking for
1173 * the first repeated pattern letter, which breaks the interval pattern
1182 // check the repeativeness of pattern letter
1204 // ch is a date-time pattern character
1209 // check last pattern char, distinguish
1308 // loop through the pattern string character by character
1314 // check the repeativeness of pattern letter
1318 // but there is "L" in pattern.
1319 // for skeleton "M+", the pattern might be "...L..."
1346 // ch is a date-time pattern character
1353 // check the repeativeness of pattern letter
1357 // but there is "L" in pattern.
1358 // for skeleton "M+", the pattern might be "...L..."