Home | History | Annotate | Download | only in i18n

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,
520 const UnicodeString pattern = dtpng->getBestPattern(skeleton, status);
524 SimpleDateFormat* dtfmt = new SimpleDateFormat(pattern, locale, status);
568 * For example, interval pattern from "Jan 10, 2007 10:10 am"
574 * For example, interval pattern from "Jan 10, 2007 10:10 am"
578 * 2. even a pattern does not request a certion calendar field,
579 * the interval pattern needs to include such field if such fields are
581 * For example, a pattern/skeleton is "hm", but the interval pattern
661 UnicodeString pattern = fDtpng->getBestPattern(timeSkeleton, status);
666 // the first part of the pattern is empty,
667 // the second part of the pattern is the full-pattern
669 setPatternInfo(UCAL_DATE, NULL, &pattern, fInfo->getDefaultOrder());
670 setPatternInfo(UCAL_MONTH, NULL, &pattern, fInfo->getDefaultOrder());
671 setPatternInfo(UCAL_YEAR, NULL, &pattern, fInfo->getDefaultOrder());
686 UnicodeString pattern = fDtpng->getBestPattern(timeSkeleton, status);
691 // the first part of the pattern is empty,
692 // the second part of the pattern is the full-pattern
694 setPatternInfo(UCAL_DATE, NULL, &pattern, fInfo->getDefaultOrder());
695 setPatternInfo(UCAL_MONTH, NULL, &pattern, fInfo->getDefaultOrder());
696 setPatternInfo(UCAL_YEAR, NULL, &pattern, fInfo->getDefaultOrder());
730 // Need the Date/Time pattern for concatnation the date with
732 // The date/time pattern ( such as {0} {1} ) is saved in
912 * Generate date or time interval pattern from resource,
913 * and set them into the interval pattern locale to this formatter.
924 * 2. there might be no pattern for 'y' differ for skeleton "Md",
931 * TRUE if interval pattern found for the skeleton,
941 // the final interval pattern might include time interval patterns
944 // For year/month/day differ, it falls back to fall-back pattern.
1020 UnicodeString pattern = fDtpng->getBestPattern(skeleton, status);
1024 setPatternInfo(field, NULL, &pattern, fInfo->getDefaultOrder());
1036 // the first part of the pattern is empty,
1037 // the second part of the pattern is the full-pattern
1068 const UnicodeString* pattern = &intervalPattern;
1079 pattern = &realPattern;
1086 pattern = &realPattern;
1089 int32_t splitPoint = splitPatternInto2Part(*pattern);
1093 pattern->extract(0, splitPoint, firstPart);
1094 if ( splitPoint < pattern->length() ) {
1095 pattern->extract(splitPoint, pattern->length()-splitPoint, secondPart);
1104 * Generate interval pattern from existing resource
1111 * @param bestSkeleton the best match skeleton which has interval pattern
1121 * @return whether the interval pattern is found
1123 * TRUE if interval pattern is found by
1136 UnicodeString pattern;
1137 fInfo->getIntervalPattern(*bestSkeleton, field, pattern, status);
1138 if ( pattern.isEmpty() ) {
1146 // might not include pattern when am_pm differ,
1150 fInfo->getIntervalPattern(*bestSkeleton, UCAL_HOUR, pattern,status);
1151 if ( !pattern.isEmpty() ) {
1152 setIntervalPattern(field, pattern);
1156 // else, looking for pattern when 'y' differ for 'dMMMM' skeleton,
1157 // first, get best match pattern "MMMd",
1158 // since there is no pattern for 'y' differs for skeleton 'MMMd',
1160 // if found, adjust field width in interval pattern from
1170 fInfo->getIntervalPattern(*extendedBestSkeleton,field,pattern,status);
1171 if ( pattern.isEmpty() && differenceInfo == 0 ) {
1177 fInfo->getIntervalPattern(*tmpBest, field, pattern, status);
1183 if ( !pattern.isEmpty() ) {
1186 adjustFieldWidth(*skeleton, *bestSkeleton, pattern, differenceInfo,
1190 setIntervalPattern(field, pattern);
1207 /* repeatedPattern used to record whether a pattern has already seen.
1208 It is a pattern applies to first calendar if it is first time seen,
1209 otherwise, it is a pattern applies to the second calendar
1225 /* loop through the pattern string character by character looking for
1226 * the first repeated pattern letter, which breaks the interval pattern
1235 // check the repeativeness of pattern letter
1257 // ch is a date-time pattern character
1262 // check last pattern char, distinguish
1362 // loop through the pattern string character by character
1368 // check the repeativeness of pattern letter
1372 // but there is "L" in pattern.
1373 // for skeleton "M+", the pattern might be "...L..."
1400 // ch is a date-time pattern character
1407 // check the repeativeness of pattern letter
1411 // but there is "L" in pattern.
1412 // for skeleton "M+", the pattern might be "...L..."