Home | History | Annotate | Download | only in i18n

Lines Matching refs:pattern

602 DateTimePatternGenerator::getSkeleton(const UnicodeString& pattern, UErrorCode&
607 matcher.set(pattern, &fp, localSkeleton);
613 const UnicodeString& pattern, UErrorCode& /*status*/) {
617 matcher.set(pattern, &fp, localSkeleton);
622 DateTimePatternGenerator::getBaseSkeleton(const UnicodeString& pattern, UErrorCode& /*status*/) {
626 matcher.set(pattern, &fp, localSkeleton);
632 const UnicodeString& pattern, UErrorCode& /*status*/) {
636 matcher.set(pattern, &fp, localSkeleton);
764 // set fDefaultHourFormatChar to the hour format character from this pattern
883 // Add pattern with its associated skeleton. Override any duplicate
1109 // Get pattern for skeleton with H, then replace H or k
1122 DateTimePatternGenerator::replaceFieldTypes(const UnicodeString& pattern,
1125 return replaceFieldTypes(pattern, skeleton, UDATPG_MATCH_NO_OPTIONS, status);
1129 DateTimePatternGenerator::replaceFieldTypes(const UnicodeString& pattern,
1134 UnicodeString result = adjustFieldTypes(pattern, NULL, kDTPGNoFlags, options);
1227 const UnicodeString& pattern,
1232 return addPatternWithSkeleton(pattern, NULL, override, conflictingPattern, status);
1237 // 1. We pass that skeleton to matcher.set instead of having it derive a skeleton from the pattern.
1243 // 3. When adding the pattern (patternMap->add), we set a new boolean to indicate that the added entry had a
1247 const UnicodeString& pattern,
1260 matcher.set(pattern, fp, skeleton);
1266 // We only care about base conflicts - and replacing the pattern associated with a base - if:
1267 // 1. the conflicting previous base pattern did *not* have an explicit skeleton; in that case the previous
1268 // base + pattern combination was derived from either (a) a canonical item, (b) a standard format, or
1269 // (c) a pattern specified programmatically with a previous call to addPattern (which would only happen
1271 // 2. a skeleton is specified for the current pattern, but override=false; in that case we are checking
1295 patternMap->add(basePattern, skeleton, pattern, skeletonToUse != NULL, status);
1361 DateTimePatternGenerator::adjustFieldTypes(const UnicodeString& pattern,
1366 fp->set(pattern);
1397 // - "field" is the field from the found pattern.
1402 // of characters from the found pattern.
1406 // should match that in the found pattern (i.e. the length of this pattern field should
1412 // 2. There is a specified skeleton for the found pattern and one of the following is true:
1414 // b) The pattern field is numeric and the skeleton field is not, or vice versa.
1430 // don't adjust the field length in the found pattern
1568 return curElem->pattern;
1584 const UnicodeString *pattern;
1588 pattern = patternMap->getPatternFromSkeleton(*(it.getSkeleton()));
1589 if ( isCanonicalItem(*pattern) ) {
1599 if (trial == *pattern) {
1600 ((DTRedundantEnumeration *)output)->add(*pattern, status);
1642 if ((curElem = new PtnElem(otherElem->basePattern, otherElem->pattern))==NULL) {
1697 const UnicodeString& value,// mapped pattern value
1753 // Pattern exists in the list already.
1758 curElem->pattern = value;
1766 // Find the pattern from the given basePattern string.
1778 return &(curElem->pattern);
1787 // Find the pattern from the given skeleton.
1818 return &(curElem->pattern);
1848 (myElem->pattern != otherElem->pattern) ) {
1909 DateTimeMatcher::set(const UnicodeString& pattern, FormatParser* fp) {
1911 return set(pattern, fp, localSkeleton);
1915 DateTimeMatcher::set(const UnicodeString& pattern, FormatParser* fp, PtnSkeleton& skeletonResult) {
1924 fp->set(pattern);
2064 FormatParser::setTokens(const UnicodeString& pattern, int32_t startPos, int32_t *len) {
2066 if ( curLoc >= pattern.length()) {
2071 UChar c=pattern.charAt(curLoc);
2081 if ( pattern.charAt(curLoc)!= pattern.charAt(startPos) ) {
2084 } while(curLoc <= pattern.length());
2090 FormatParser::set(const UnicodeString& pattern) {
2097 result = setTokens( pattern, startPos, &len );
2100 items[itemNumber++] = UnicodeString(pattern, startPos, len );
2429 pattern(pat),
2462 s=curElem->pattern;
2532 DTRedundantEnumeration::add(const UnicodeString& pattern, UErrorCode& status) {
2542 fPatterns->addElement(new UnicodeString(pattern), status);