Lines Matching refs:field
146 // patternChar, field, type, minLen, weight
457 UnicodeString field = fp->items[i];
458 if ( fp->isQuoteLiteral(field) ) {
466 if (fp->isPatternSeparator(field) && gotMm) {
467 mmss+=field;
470 field.charAt(0);
473 mmss+=field;
480 mmss+= field;
503 UnicodeString rbPattern, value, field;
716 DateTimePatternGenerator::setAppendItemFormat(UDateTimePatternField field, const UnicodeString& value) {
717 appendItemFormats[field] = value;
719 appendItemFormats[field].getTerminatedBuffer();
723 DateTimePatternGenerator::getAppendItemFormat(UDateTimePatternField field) const {
724 return appendItemFormats[field];
728 DateTimePatternGenerator::setAppendItemName(UDateTimePatternField field, const UnicodeString& value) {
729 appendItemNames[field] = value;
731 appendItemNames[field].getTerminatedBuffer();
735 DateTimePatternGenerator:: getAppendItemName(UDateTimePatternField field) const {
736 return appendItemNames[field];
740 DateTimePatternGenerator::getAppendName(UDateTimePatternField field, UnicodeString& value) {
742 value += appendItemNames[field];
883 // specified skeleton (which sets a new field in the PtnElem in the PatternMap).
933 DateTimePatternGenerator::getAppendFormatNumber(const char* field) const {
935 if (uprv_strcmp(CLDR_FIELD_APPEND[i], field)==0) {
943 DateTimePatternGenerator::getAppendNameNumber(const char* field) const {
945 if (uprv_strcmp(CLDR_FIELD_NAME[i],field)==0) {
995 UnicodeString field = fp->items[i];
996 if ( fp->isQuoteLiteral(field) ) {
1003 if (fp->isPatternSeparator(field)) {
1004 newPattern+=field;
1007 int32_t canonicalIndex = fp->getCanonicalIndex(field);
1009 newPattern+=field;
1013 int32_t typeValue = row->field;
1016 field = field + decimal + newField;
1021 // - "reqField" is the field from the originally requested skeleton, with length
1023 // - "field" is the field from the found pattern.
1025 // The adjusted field should consist of characters from the originally requested
1029 // The length of the adjusted field (adjFieldLen) should match that in the originally
1031 // and one of the following is true, then the length of the adjusted field should match
1032 // that in the found pattern (i.e. the length of this pattern field should not be adjusted):
1033 // a) The length of the field in the skeleton (skelFieldLen) is equal to reqFieldLen.
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
1046 adjFieldLen = field.length();
1049 UChar c = (typeValue!= UDATPG_HOUR_FIELD)? reqField.charAt(0): field.charAt(0);
1050 field.remove();
1052 field+=c;
1055 newPattern+=field;
1075 while (distanceInfo->missingFieldMask!=0) { // precondition: EVERY single field must work!
1077 break; // cannot find the proper missing field
1543 UnicodeString field = fp->items[i];
1544 if ( field.charAt(0) == LOW_A ) {
1548 if ( fp->isQuoteLiteral(field) ) {
1553 int32_t canonicalIndex = fp->getCanonicalIndex(field);
1558 int32_t typeValue = row->field;
1559 skeletonResult.original[typeValue]=field;
1567 subTypeValue += field.length();
1803 FormatParser::isPatternSeparator(UnicodeString& field) {
1804 for (int32_t i=0; i<field.length(); ++i ) {
1805 UChar c= field.charAt(i);