Lines Matching refs:pattern

403 DateTimePatternGenerator::getSkeleton(const UnicodeString& pattern, UErrorCode&
405 dtMatcher->set(pattern, fp);
410 DateTimePatternGenerator::getBaseSkeleton(const UnicodeString& pattern, UErrorCode& /*status*/) {
411 dtMatcher->set(pattern, fp);
562 break; // no more pattern
568 // set fDefaultHourFormatChar to the hour format character from this pattern
592 break; // no more pattern
652 // Add pattern with its associated skeleton. Override any duplicate derived from std patterns,
793 // Get pattern for skeleton with H, then replace H or k
833 DateTimePatternGenerator::replaceFieldTypes(const UnicodeString& pattern,
836 return replaceFieldTypes(pattern, skeleton, UDATPG_MATCH_NO_OPTIONS, status);
840 DateTimePatternGenerator::replaceFieldTypes(const UnicodeString& pattern,
845 UnicodeString result = adjustFieldTypes(pattern, NULL, kDTPGNoFlags, options);
916 const UnicodeString& pattern,
921 return addPatternWithSkeleton(pattern, NULL, override, conflictingPattern, status);
926 // 1. We pass that skeleton to matcher.set instead of having it derive a skeleton from the pattern.
932 // 3. When adding the pattern (patternMap->add), we set a new boolean to indicate that the added entry had a
936 const UnicodeString& pattern,
949 matcher.set(pattern, fp, skeleton);
955 // We only care about base conflicts - and replacing the pattern associated with a base - if:
956 // 1. the conflicting previous base pattern did *not* have an explicit skeleton; in that case the previous
957 // base + pattern combination was derived from either (a) a canonical item, (b) a standard format, or
958 // (c) a pattern specified programmatically with a previous call to addPattern (which would only happen
960 // 2. a skeleton is specified for the current pattern, but override=false; in that case we are checking
984 patternMap->add(basePattern, skeleton, pattern, skeletonToUse != NULL, status);
1050 DateTimePatternGenerator::adjustFieldTypes(const UnicodeString& pattern,
1055 fp->set(pattern);
1083 // - "field" is the field from the found pattern.
1088 // of characters from the found pattern.
1092 // should match that in the found pattern (i.e. the length of this pattern field should
1098 // 2. There is a specified skeleton for the found pattern and one of the following is true:
1100 // b) The pattern field is numeric and the skeleton field is not, or vice versa.
1117 // don't adjust the field length in the found pattern
1252 return curElem->pattern;
1268 const UnicodeString *pattern;
1272 pattern = patternMap->getPatternFromSkeleton(*(it.getSkeleton()));
1273 if ( isCanonicalItem(*pattern) ) {
1283 if (trial == *pattern) {
1284 ((DTRedundantEnumeration *)output)->add(*pattern, status);
1326 if ((curElem = new PtnElem(otherElem->basePattern, otherElem->pattern))==NULL) {
1381 const UnicodeString& value,// mapped pattern value
1442 curElem->pattern = value;
1450 // Find the pattern from the given basePattern string.
1462 return &(curElem->pattern);
1471 // Find the pattern from the given skeleton.
1519 return &(curElem->pattern);
1549 (myElem->pattern != otherElem->pattern) ) {
1610 DateTimeMatcher::set(const UnicodeString& pattern, FormatParser* fp) {
1612 return set(pattern, fp, localSkeleton);
1616 DateTimeMatcher::set(const UnicodeString& pattern, FormatParser* fp, PtnSkeleton& skeletonResult) {
1621 fp->set(pattern);
1766 FormatParser::setTokens(const UnicodeString& pattern, int32_t startPos, int32_t *len) {
1768 if ( curLoc >= pattern.length()) {
1773 UChar c=pattern.charAt(curLoc);
1783 if ( pattern.charAt(curLoc)!= pattern.charAt(startPos) ) {
1786 } while(curLoc <= pattern.length());
1792 FormatParser::set(const UnicodeString& pattern) {
1799 result = setTokens( pattern, startPos, &len );
1802 items[itemNumber++] = UnicodeString(pattern, startPos, len );
2053 pattern(pat),
2086 s=curElem->pattern;
2156 DTRedundantEnumeration::add(const UnicodeString& pattern, UErrorCode& status) {
2166 fPatterns->addElement(new UnicodeString(pattern), status);