Lines Matching refs:pattern
394 DateTimePatternGenerator::getSkeleton(const UnicodeString& pattern, UErrorCode&
396 dtMatcher->set(pattern, fp);
401 DateTimePatternGenerator::getBaseSkeleton(const UnicodeString& pattern, UErrorCode& /*status*/) {
402 dtMatcher->set(pattern, fp);
557 break; // no more pattern
563 // set fDefaultHourFormatChar to the hour format character from this pattern
587 break; // no more pattern
636 // Add pattern with its associated skeleton. Override any duplicate derived from std patterns,
679 // Add pattern with its associated skeleton. Override any duplicate derived from std patterns,
790 DateTimePatternGenerator::replaceFieldTypes(const UnicodeString& pattern,
794 UnicodeString result = adjustFieldTypes(pattern, NULL, FALSE);
866 const UnicodeString& pattern,
871 return addPatternWithSkeleton(pattern, NULL, override, conflictingPattern, status);
876 // 1. We pass that skeleton to matcher.set instead of having it derive a skeleton from the pattern.
882 // 3. When adding the pattern (patternMap->add), we set a new boolean to indicate that the added entry had a
886 const UnicodeString& pattern,
899 matcher.set(pattern, fp, skeleton);
923 patternMap->add(basePattern, skeleton, pattern, skeletonToUse != NULL, status);
989 DateTimePatternGenerator::adjustFieldTypes(const UnicodeString& pattern,
993 fp->set(pattern);
1023 // - "field" is the field from the found pattern.
1027 // of characters from the found pattern.
1030 // requested skeleton, except that if there is a specified skeleton for the found pattern
1032 // that in the found pattern (i.e. the length of this pattern field should not be adjusted):
1034 // b) The pattern field is numeric and the skeleton field is not, or vice versa.
1045 // don't adjust the field length in the found pattern
1177 return curElem->pattern;
1193 const UnicodeString *pattern;
1197 pattern = patternMap->getPatternFromSkeleton(*(it.getSkeleton()));
1198 if ( isCanonicalItem(*pattern) ) {
1208 if (trial == *pattern) {
1209 ((DTRedundantEnumeration *)output)->add(*pattern, status);
1251 if ((curElem = new PtnElem(otherElem->basePattern, otherElem->pattern))==NULL) {
1306 const UnicodeString& value,// mapped pattern value
1362 // Pattern exists in the list already.
1367 curElem->pattern = value;
1372 // Find the pattern from the given basePattern string.
1384 return &(curElem->pattern);
1393 // Find the pattern from the given skeleton.
1441 return &(curElem->pattern);
1471 (myElem->pattern != otherElem->pattern) ) {
1530 DateTimeMatcher::set(const UnicodeString& pattern, FormatParser* fp) {
1532 return set(pattern, fp, localSkeleton);
1536 DateTimeMatcher::set(const UnicodeString& pattern, FormatParser* fp, PtnSkeleton& skeletonResult) {
1541 fp->set(pattern);
1686 FormatParser::setTokens(const UnicodeString& pattern, int32_t startPos, int32_t *len) {
1688 if ( curLoc >= pattern.length()) {
1693 UChar c=pattern.charAt(curLoc);
1703 if ( pattern.charAt(curLoc)!= pattern.charAt(startPos) ) {
1706 } while(curLoc <= pattern.length());
1712 FormatParser::set(const UnicodeString& pattern) {
1719 result = setTokens( pattern, startPos, &len );
1722 items[itemNumber++] = UnicodeString(pattern, startPos, len );
1971 pattern(pat),
2004 s=curElem->pattern;
2074 DTRedundantEnumeration::add(const UnicodeString& pattern, UErrorCode& status) {
2084 fPatterns->addElement(new UnicodeString(pattern), status);