• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/ICU-531.30/icuSources/i18n/

Lines Matching defs:pattern

88     sprintf(mesg, "skeleton: %s; pattern: %s\n", result, result_1);
354 * the smallest calendar field in pattern,
361 // If the first part in interval pattern is empty,
362 // the 2nd part of it saves the full-pattern used in fall-back.
363 // For a 'real' interval pattern, the first part will never be empty.
382 // break the interval pattern into 2 parts,
551 const UnicodeString pattern = dtpng->getBestPattern(skeleton, status);
555 SimpleDateFormat* dtfmt = new SimpleDateFormat(pattern, locale, status);
599 * For example, interval pattern from "Jan 10, 2007 10:10 am"
605 * For example, interval pattern from "Jan 10, 2007 10:10 am"
609 * 2. even a pattern does not request a certion calendar field,
610 * the interval pattern needs to include such field if such fields are
612 * For example, a pattern/skeleton is "hm", but the interval pattern
692 UnicodeString pattern = fDtpng->getBestPattern(timeSkeleton, status);
697 // the first part of the pattern is empty,
698 // the second part of the pattern is the full-pattern
700 setPatternInfo(UCAL_DATE, NULL, &pattern, fInfo->getDefaultOrder());
701 setPatternInfo(UCAL_MONTH, NULL, &pattern, fInfo->getDefaultOrder());
702 setPatternInfo(UCAL_YEAR, NULL, &pattern, fInfo->getDefaultOrder());
717 UnicodeString pattern = fDtpng->getBestPattern(timeSkeleton, status);
722 // the first part of the pattern is empty,
723 // the second part of the pattern is the full-pattern
725 setPatternInfo(UCAL_DATE, NULL, &pattern, fInfo->getDefaultOrder());
726 setPatternInfo(UCAL_MONTH, NULL, &pattern, fInfo->getDefaultOrder());
727 setPatternInfo(UCAL_YEAR, NULL, &pattern, fInfo->getDefaultOrder());
761 // Need the Date/Time pattern for concatnation the date with
763 // The date/time pattern ( such as {0} {1} ) is saved in
947 * Generate date or time interval pattern from resource,
948 * and set them into the interval pattern locale to this formatter.
959 * 2. there might be no pattern for 'y' differ for skeleton "Md",
966 * TRUE if interval pattern found for the skeleton,
976 // the final interval pattern might include time interval patterns
979 // For year/month/day differ, it falls back to fall-back pattern.
1055 UnicodeString pattern = fDtpng->getBestPattern(skeleton, status);
1059 setPatternInfo(field, NULL, &pattern, fInfo->getDefaultOrder());
1071 // the first part of the pattern is empty,
1072 // the second part of the pattern is the full-pattern
1103 const UnicodeString* pattern = &intervalPattern;
1114 pattern = &realPattern;
1121 pattern = &realPattern;
1124 int32_t splitPoint = splitPatternInto2Part(*pattern);
1128 pattern->extract(0, splitPoint, firstPart);
1129 if ( splitPoint < pattern->length() ) {
1130 pattern->extract(splitPoint, pattern->length()-splitPoint, secondPart);
1139 * Generate interval pattern from existing resource
1146 * @param bestSkeleton the best match skeleton which has interval pattern
1156 * @return whether the interval pattern is found
1158 * TRUE if interval pattern is found by
1171 UnicodeString pattern;
1172 fInfo->getIntervalPattern(*bestSkeleton, field, pattern, status);
1173 if ( pattern.isEmpty() ) {
1181 // might not include pattern when am_pm differ,
1185 fInfo->getIntervalPattern(*bestSkeleton, UCAL_HOUR, pattern,status);
1186 if ( !pattern.isEmpty() ) {
1187 setIntervalPattern(field, pattern);
1191 // else, looking for pattern when 'y' differ for 'dMMMM' skeleton,
1192 // first, get best match pattern "MMMd",
1193 // since there is no pattern for 'y' differs for skeleton 'MMMd',
1195 // if found, adjust field width in interval pattern from
1205 fInfo->getIntervalPattern(*extendedBestSkeleton,field,pattern,status);
1206 if ( pattern.isEmpty() && differenceInfo == 0 ) {
1212 fInfo->getIntervalPattern(*tmpBest, field, pattern, status);
1218 if ( !pattern.isEmpty() ) {
1221 adjustFieldWidth(*skeleton, *bestSkeleton, pattern, differenceInfo,
1225 setIntervalPattern(field, pattern);
1242 /* repeatedPattern used to record whether a pattern has already seen.
1243 It is a pattern applies to first calendar if it is first time seen,
1244 otherwise, it is a pattern applies to the second calendar
1260 /* loop through the pattern string character by character looking for
1261 * the first repeated pattern letter, which breaks the interval pattern
1270 // check the repeativeness of pattern letter
1292 // ch is a date-time pattern character
1297 // check last pattern char, distinguish
1397 // loop through the pattern string character by character
1403 // check the repeativeness of pattern letter
1407 // but there is "L" in pattern.
1408 // for skeleton "M+", the pattern might be "...L..."
1435 // ch is a date-time pattern character
1442 // check the repeativeness of pattern letter
1446 // but there is "L" in pattern.
1447 // for skeleton "M+", the pattern might be "...L..."