Home | History | Annotate | Download | only in i18n

Lines Matching defs:skeleton

69 DateIntervalFormat::createInstance(const UnicodeString& skeleton, 
71 return createInstance(skeleton, Locale::getDefault(), status);
76 DateIntervalFormat::createInstance(const UnicodeString& skeleton,
83 skeleton.extract(0, skeleton.length(), result, "UTF-8");
87 sprintf(mesg, "skeleton: %s; pattern: %s\n", result, result_1);
92 return create(locale, dtitvinf, &skeleton, status);
98 DateIntervalFormat::createInstance(const UnicodeString& skeleton,
101 return createInstance(skeleton, Locale::getDefault(), dtitvinf, status);
106 DateIntervalFormat::createInstance(const UnicodeString& skeleton,
111 return create(locale, ptn, &skeleton, status);
421 const UnicodeString* skeleton,
434 SimpleDateFormat* dtfmt = createSDFPatternInstance(*skeleton, locale,
450 if ( skeleton ) {
451 fSkeleton = *skeleton;
467 DateIntervalFormat::createSDFPatternInstance(const UnicodeString& skeleton,
476 const UnicodeString pattern = dtpng->getBestPattern(skeleton, status);
492 const UnicodeString* skeleton,
495 skeleton, status);
518 * For example, it has interval patterns on skeleton "dMy" and "hm",
519 * but it does not have interval patterns on skeleton "dMyhm".
521 * The rule to genearte interval patterns for both date and time skeleton are
537 * For example, a pattern/skeleton is "hm", but the interval pattern
561 // or by createInstance(UnicodeString skeleton, .... )
574 /* Check whether the skeleton is a combination of date and time.
583 /* the difference between time skeleton and normalizedTimeSkeleton are:
584 * 1. (Formerly, normalized time skeleton folded 'H' to 'h'; no longer true)
585 * 2. 'a' is omitted in normalized time skeleton.
587 * time skeleton
589 * The difference between date skeleton and normalizedDateSkeleton are:
635 } // end of skeleton not found
636 // interval patterns for skeleton are found in resource
665 UnicodeString skeleton = fSkeleton;
667 // prefix skeleton with 'd'
668 skeleton.insert(0, LOW_D);
669 setFallbackPattern(UCAL_DATE, skeleton, status);
672 // then prefix skeleton with 'M'
673 skeleton.insert(0, CAP_M);
674 setFallbackPattern(UCAL_MONTH, skeleton, status);
677 // then prefix skeleton with 'y'
678 skeleton.insert(0, LOW_Y);
679 setFallbackPattern(UCAL_YEAR, skeleton, status);
728 DateIntervalFormat::getDateTimeSkeleton(const UnicodeString& skeleton,
746 for (i = 0; i < skeleton.length(); ++i) {
747 UChar ch = skeleton[i];
880 * 2. there might be no pattern for 'y' differ for skeleton "Md",
882 * need to look for it from skeleton 'yMd'
884 * @param dateSkeleton normalized date skeleton
885 * @param timeSkeleton normalized time skeleton
886 * @return whether the resource is found for the skeleton.
887 * TRUE if interval pattern found for the skeleton,
895 const UnicodeString* skeleton;
896 // if both date and time skeleton present,
902 skeleton = &timeSkeleton;
904 skeleton = &dateSkeleton;
907 /* interval patterns for skeleton "dMMMy" (but not "dMMMMy")
909 * interval patterns for skeleton "dMMMMy" are calculated by
910 * 1. get the best match skeleton for "dMMMMy", which is "dMMMy"
915 // best skeleton, and the difference information
917 const UnicodeString* bestSkeleton = fInfo->getBestSkeleton(*skeleton,
919 /* best skeleton could be NULL.
926 and the best skeleton match could be NULL
933 // 0 means the best matched skeleton is the same as input skeleton
938 // skeleton has different fields, not only v/z difference
945 // only has date skeleton
946 setIntervalPattern(UCAL_DATE, skeleton, bestSkeleton, differenceInfo,
949 UBool extended = setIntervalPattern(UCAL_MONTH, skeleton, bestSkeleton,
955 skeleton = &extendedSkeleton;
957 setIntervalPattern(UCAL_YEAR, skeleton, bestSkeleton, differenceInfo,
960 setIntervalPattern(UCAL_MINUTE, skeleton, bestSkeleton, differenceInfo);
961 setIntervalPattern(UCAL_HOUR, skeleton, bestSkeleton, differenceInfo);
962 setIntervalPattern(UCAL_AM_PM, skeleton, bestSkeleton, differenceInfo);
971 const UnicodeString& skeleton,
976 UnicodeString pattern = fDtpng->getBestPattern(skeleton, status);
1063 * but also return the extended skeleton and its best match skeleton.
1066 * @param skeleton skeleton
1067 * @param bestSkeleton the best match skeleton which has interval pattern
1069 * @param differenceInfo the difference between skeleton and best skeleton
1070 * 0 means the best matched skeleton is the same as input skeleton
1075 * @param extendedSkeleton extended skeleton
1076 * @param extendedBestSkeleton extended best match skeleton
1078 * through extending skeleton or not.
1080 * extending skeleton, FALSE otherwise.
1085 const UnicodeString* skeleton,
1112 // else, looking for pattern when 'y' differ for 'dMMMM' skeleton,
1114 // since there is no pattern for 'y' differs for skeleton 'MMMd',
1115 // need to look for it from skeleton 'yMMMd',
1120 *extendedSkeleton = *skeleton;
1125 // skeleton "MMMM".
1128 // if there is no skeleton "yMMMM" defined,
1129 // look for the best match skeleton, for example: "yMMM"
1142 adjustFieldWidth(*skeleton, *bestSkeleton, pattern, differenceInfo,
1266 const UnicodeString& skeleton)
1269 return ( (skeleton.indexOf(fieldChar) == -1)?FALSE:TRUE ) ;
1326 // there is no "L" (always be "M") in skeleton,
1328 // for skeleton "M+", the pattern might be "...L..."
1365 // there is no "L" (always be "M") in skeleton,
1367 // for skeleton "M+", the pattern might be "...L..."