Lines Matching refs:UnicodeString
224 //static const UnicodeString repeatedPattern=UnicodeString(repeatedPatterns);
388 UnicodeString
389 DateTimePatternGenerator::getSkeleton(const UnicodeString& pattern, UErrorCode&
395 UnicodeString
396 DateTimePatternGenerator::getBaseSkeleton(const UnicodeString& pattern, UErrorCode& /*status*/) {
403 UnicodeString dfPattern;
404 UnicodeString conflictingString;
443 DateTimePatternGenerator::hackTimes(const UnicodeString& hackPattern, UErrorCode& status) {
445 UnicodeString conflictingString;
448 UnicodeString mmss;
451 UnicodeString field = fp->items[i];
454 UnicodeString quoteLiteral;
497 UnicodeString rbPattern, value, field;
498 UnicodeString conflictingPattern;
503 UnicodeString defaultItemFormat(TRUE, UDATPG_ItemFormat, LENGTHOF(UDATPG_ItemFormat)-1); // Read-only alias.
577 UnicodeString itemKey;
627 UnicodeString format=UnicodeString(retPattern);
628 UnicodeString retKey=UnicodeString(key, -1, US_INV);
669 UnicodeString format=UnicodeString(retPattern);
670 UnicodeString retKey=UnicodeString(key, -1, US_INV);
710 DateTimePatternGenerator::setAppendItemFormat(UDateTimePatternField field, const UnicodeString& value) {
716 const UnicodeString&
722 DateTimePatternGenerator::setAppendItemName(UDateTimePatternField field, const UnicodeString& value) {
728 const UnicodeString&
734 DateTimePatternGenerator::getAppendName(UDateTimePatternField field, UnicodeString& value) {
740 UnicodeString
741 DateTimePatternGenerator::getBestPattern(const UnicodeString& patternForm, UErrorCode& status) {
745 UnicodeString
746 DateTimePatternGenerator::getBestPattern(const UnicodeString& patternForm, UDateTimePatternMatchOptions options, UErrorCode& status) {
747 const UnicodeString *bestPattern=NULL;
748 UnicodeString dtFormat;
749 UnicodeString resultPattern;
754 UnicodeString patternFormCopy = UnicodeString(patternForm);
755 patternFormCopy.findAndReplace(UnicodeString(LOW_J), UnicodeString(fDefaultHourFormatChar));
767 UnicodeString datePattern=getBestAppending(neededFields & dateMask, options);
768 UnicodeString timePattern=getBestAppending(neededFields & timeMask, options);
788 UnicodeString
789 DateTimePatternGenerator::replaceFieldTypes(const UnicodeString& pattern,
790 const UnicodeString& skeleton,
795 UnicodeString
796 DateTimePatternGenerator::replaceFieldTypes(const UnicodeString& pattern,
797 const UnicodeString& skeleton,
801 UnicodeString result = adjustFieldTypes(pattern, NULL, FALSE, options);
806 DateTimePatternGenerator::setDecimal(const UnicodeString& newDecimal) {
812 const UnicodeString&
819 UnicodeString conflictingPattern;
824 conflictingStatus = addPattern(UnicodeString(Canonical_Items[i]), FALSE, conflictingPattern, status);
829 DateTimePatternGenerator::setDateTimeFormat(const UnicodeString& dtFormat) {
835 const UnicodeString&
856 setDateTimeFormat(UnicodeString(TRUE, resStr, resStrLen));
873 const UnicodeString& pattern,
875 UnicodeString &conflictingPattern,
893 const UnicodeString& pattern,
894 const UnicodeString* skeletonToUse,
896 UnicodeString& conflictingPattern,
900 UnicodeString basePattern;
913 const UnicodeString *duplicatePattern = patternMap->getPatternFromBasePattern(basePattern, entryHadSpecifiedSkeleton);
959 const UnicodeString*
966 const UnicodeString *bestPattern=NULL;
995 UnicodeString
996 DateTimePatternGenerator::adjustFieldTypes(const UnicodeString& pattern,
1000 UnicodeString newPattern;
1003 UnicodeString field = fp->items[i];
1006 UnicodeString quoteLiteral;
1023 UnicodeString newField=dtMatcher->skeleton.original[UDATPG_FRACTIONAL_SECOND_FIELD];
1050 UnicodeString reqField = dtMatcher->skeleton.original[typeValue];
1060 UnicodeString skelField = specifiedSkeleton->original[typeValue];
1083 UnicodeString
1085 UnicodeString resultPattern, tempPattern, formattedPattern;
1089 resultPattern=UnicodeString();
1112 UnicodeString appendName;
1119 UnicodeString emptyStr;
1145 DateTimePatternGenerator::setAvailableFormat(const UnicodeString &key, UErrorCode& err)
1151 DateTimePatternGenerator::isAvailableFormatSet(const UnicodeString &key) const {
1174 UnicodeString* otherKey = (UnicodeString*)otherKeyTok.pointer;
1188 const UnicodeString&
1189 DateTimePatternGenerator::getPatternForSkeleton(const UnicodeString& skeleton) const {
1214 const UnicodeString *pattern;
1228 UnicodeString trial = getBestPattern(current.getPattern(), status);
1240 DateTimePatternGenerator::isCanonicalItem(const UnicodeString& item) const {
1325 PatternMap::add(const UnicodeString& basePattern,
1327 const UnicodeString& value,// mapped pattern value
1394 const UnicodeString *
1395 PatternMap::getPatternFromBasePattern(UnicodeString& basePattern, UBool& skeletonWasSpecified) { // key to search for
1420 const UnicodeString *
1510 const UnicodeString &basePattern,
1551 DateTimeMatcher::set(const UnicodeString& pattern, FormatParser* fp) {
1557 DateTimeMatcher::set(const UnicodeString& pattern, FormatParser* fp, PtnSkeleton& skeletonResult) {
1564 UnicodeString field = fp->items[i];
1570 UnicodeString quoteLiteral;
1596 DateTimeMatcher::getBasePattern(UnicodeString &result ) {
1605 UnicodeString
1607 UnicodeString result;
1707 FormatParser::setTokens(const UnicodeString& pattern, int32_t startPos, int32_t *len) {
1733 FormatParser::set(const UnicodeString& pattern) {
1743 items[itemNumber++] = UnicodeString(pattern, startPos, len );
1753 FormatParser::getCanonicalIndex(const UnicodeString& s, UBool strict) {
1787 FormatParser::isQuoteLiteral(const UnicodeString& s) const {
1794 FormatParser::getQuoteLiteral(UnicodeString& quote, int32_t *itemIndex) {
1824 FormatParser::isPatternSeparator(UnicodeString& field) {
1962 UnicodeString
1964 UnicodeString result;
1974 UnicodeString
1976 UnicodeString result;
1989 PtnElem::PtnElem(const UnicodeString &basePat, const UnicodeString &pat) :
2008 UnicodeString s;
2033 fSkeletons->addElement(new UnicodeString(s), status);
2048 const UnicodeString*
2051 return (const UnicodeString*)fSkeletons->elementAt(pos++);
2067 DTSkeletonEnumeration::isCanonicalItem(const UnicodeString& item) {
2080 UnicodeString *s;
2082 if ((s=(UnicodeString *)fSkeletons->elementAt(i))!=NULL) {
2095 DTRedundantEnumeration::add(const UnicodeString& pattern, UErrorCode& status) {
2105 fPatterns->addElement(new UnicodeString(pattern), status);
2113 const UnicodeString*
2116 return (const UnicodeString*)fPatterns->elementAt(pos++);
2132 DTRedundantEnumeration::isCanonicalItem(const UnicodeString& item) {
2145 UnicodeString *s;
2147 if ((s=(UnicodeString *)fPatterns->elementAt(i))!=NULL) {