| /third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
| H A D | DateTimeStyleSet.java | 47 protected void handleParseValue(FieldsSet inheritFrom, int field, String substr) { in handleParseValue() argument 49 parseValueEnum(DebugUtilitiesData.UDateFormatStyle, inheritFrom, field, substr.substring(kRELATIVE_.length())); in handleParseValue() 50 if(isSet(field)) { in handleParseValue() 51 set(field, get(field) | DateFormat.RELATIVE); in handleParseValue() 54 parseValueEnum(DebugUtilitiesData.UDateFormatStyle, inheritFrom, field, substr); in handleParseValue() 64 throw new IllegalArgumentException("Bad field: " + name); in handleParseName()
|
| /third_party/protobuf/src/google/protobuf/util/internal/ |
| H A D | protostream_objectwriter.cc | 218 // field. in StartObject() 220 // Save data before the "@type" field for later replay. in StartObject() 223 // For well-known types, the only other field besides "@type" should be a in StartObject() 224 // "value" field. in StartObject() 227 "Expect a \"value\" field for well-known types."); in StartObject() 243 // Save data before the "@type" field for later replay. in EndObject() 264 // Save data before the "@type" field for later replay. in StartList() 269 "Expect a \"value\" field for well-known types."); in StartList() 285 // Save data before the "@type" field for later replay. in EndList() 299 // Save data before the "@type" field in RenderDataPiece() 586 const google::protobuf::Field* field = BeginNamed(name, false); StartObject() local 801 const google::protobuf::Field* field = Lookup(name); StartList() local 1132 const google::protobuf::Field* field = nullptr; RenderDataPiece() local 1328 IsMap(const google::protobuf::Field& field) IsMap() argument 1340 IsAny(const google::protobuf::Field& field) IsAny() argument 1344 IsStruct(const google::protobuf::Field& field) IsStruct() argument 1348 IsStructValue( const google::protobuf::Field& field) IsStructValue() argument 1353 IsStructListValue( const google::protobuf::Field& field) IsStructListValue() argument [all...] |
| /third_party/icu/icu4c/source/i18n/ |
| H A D | dtptngen.cpp | 146 // patternChar, field, type, minLen, weight 277 static constexpr int32_t UDATPG_FIELD_KEY_MAX = 24; // max length of CLDR field tag (type + width) 854 UnicodeString field = fp->items[i]; in hackTimes() local 855 if ( fp->isQuoteLiteral(field) ) { in hackTimes() 863 if (fp->isPatternSeparator(field) && gotMm) { in hackTimes() 864 mmss+=field; in hackTimes() 867 UChar ch=field.charAt(0); in hackTimes() 870 mmss+=field; in hackTimes() 877 mmss+= field; in hackTimes() 955 UDateTimePatternField field variable 966 UDateTimePatternField field = (UDateTimePatternField)i; fillInMissing() local 985 UDateTimePatternField field = dtpg.getFieldAndWidthIndices(key, &width); global() variable 1001 U_ASSERT(i < 20); if (i < 10) { valueStr += (UChar)(i+0x30); } else { valueStr += (UChar)0x31; valueStr += (UChar)(i-10 + 0x30); } valueStr.getTerminatedBuffer(); } for (int32_t j = 1; j < UDATPG_WIDTH_COUNT; j++) { UnicodeString& valueStr2 = dtpg.getMutableFieldDisplayName((UDateTimePatternField)i, (UDateTimePGDisplayWidth)j); if (valueStr2.isEmpty()) { valueStr2 = dtpg.getFieldDisplayName((UDateTimePatternField)i, (UDateTimePGDisplayWidth)(j-1)); } } } } }; struct DateTimePatternGenerator::AvailableFormatsSink : public ResourceSink { DateTimePatternGenerator& dtpg; UnicodeString conflictingPattern; AvailableFormatsSink(DateTimePatternGenerator& _dtpg) : dtpg(_dtpg) {} virtual ~AvailableFormatsSink(); virtual void put(const char *key, ResourceValue &value, UBool isRoot, UErrorCode &errorCode) override { const UnicodeString formatKey(key, -1, US_INV); if (!dtpg.isAvailableFormatSet(formatKey) ) { dtpg.setAvailableFormat(formatKey, errorCode); const UnicodeString& formatValue = value.getUnicodeString(errorCode); conflictingPattern.remove(); dtpg.addPatternWithSkeleton(formatValue, &formatKey, !isRoot, conflictingPattern, errorCode); } } }; DateTimePatternGenerator::AppendItemFormatsSink::~AppendItemFormatsSink() {} DateTimePatternGenerator::AppendItemNamesSink::~AppendItemNamesSink() {} DateTimePatternGenerator::AvailableFormatsSink::~AvailableFormatsSink() {} void DateTimePatternGenerator::addCLDRData(const Locale& locale, UErrorCode& errorCode) { if (U_FAILURE(errorCode)) { return; } UnicodeString rbPattern, value, field; CharString path; LocalUResourceBundlePointer rb(ures_open(nullptr, locale.getName(), &errorCode)); if (U_FAILURE(errorCode)) { return; } CharString calendarTypeToUse; getCalendarTypeToUse(locale, calendarTypeToUse, errorCode); if (U_FAILURE(errorCode)) { return; } UErrorCode err = U_ZERO_ERROR; AppendItemFormatsSink appendItemFormatsSink(*this); path.clear() .append(DT_DateTimeCalendarTag, errorCode) .append(�, errorCode) .append(calendarTypeToUse, errorCode) .append(�, errorCode) .append(DT_DateTimeAppendItemsTag, errorCode); if (U_FAILURE(errorCode)) { return; } ures_getAllChildrenWithFallback(rb.getAlias(), path.data(), appendItemFormatsSink, err); appendItemFormatsSink.fillInMissing(); err = U_ZERO_ERROR; AppendItemNamesSink appendItemNamesSink(*this); ures_getAllChildrenWithFallback(rb.getAlias(), DT_DateTimeFieldsTag, appendItemNamesSink, err); appendItemNamesSink.fillInMissing(); err = U_ZERO_ERROR; initHashtable(errorCode); if (U_FAILURE(errorCode)) { return; } AvailableFormatsSink availableFormatsSink(*this); path.clear() .append(DT_DateTimeCalendarTag, errorCode) .append(�, errorCode) .append(calendarTypeToUse, errorCode) .append(�, errorCode) .append(DT_DateTimeAvailableFormatsTag, errorCode); if (U_FAILURE(errorCode)) { return; } ures_getAllChildrenWithFallback(rb.getAlias(), path.data(), availableFormatsSink, err); } void DateTimePatternGenerator::initHashtable(UErrorCode& err) { if (U_FAILURE(err)) { return; } if (fAvailableFormatKeyHash!=nullptr) { return; } LocalPointer<Hashtable> hash(new Hashtable(false, err), err); if (U_SUCCESS(err)) { fAvailableFormatKeyHash = hash.orphan(); } } void DateTimePatternGenerator::setAppendItemFormat(UDateTimePatternField field, const UnicodeString& value) { appendItemFormats[field] = value; appendItemFormats[field].getTerminatedBuffer(); } const UnicodeString& DateTimePatternGenerator::getAppendItemFormat(UDateTimePatternField field) const { return appendItemFormats[field]; } void DateTimePatternGenerator::setAppendItemName(UDateTimePatternField field, const UnicodeString& value) { setFieldDisplayName(field, UDATPG_WIDTH_APPENDITEM, value); } const UnicodeString& DateTimePatternGenerator::getAppendItemName(UDateTimePatternField field) const { return fieldDisplayNames[field][UDATPG_WIDTH_APPENDITEM]; } void DateTimePatternGenerator::setFieldDisplayName(UDateTimePatternField field, UDateTimePGDisplayWidth width, const UnicodeString& value) { fieldDisplayNames[field][width] = value; fieldDisplayNames[field][width].getTerminatedBuffer(); } UnicodeString DateTimePatternGenerator::getFieldDisplayName(UDateTimePatternField field, UDateTimePGDisplayWidth width) const { return fieldDisplayNames[field][width]; } UnicodeString& DateTimePatternGenerator::getMutableFieldDisplayName(UDateTimePatternField field, UDateTimePGDisplayWidth width) { return fieldDisplayNames[field][width]; } void DateTimePatternGenerator::getAppendName(UDateTimePatternField field, UnicodeString& value) { value = SINGLE_QUOTE; value += fieldDisplayNames[field][UDATPG_WIDTH_APPENDITEM]; value += SINGLE_QUOTE; } UnicodeString DateTimePatternGenerator::getBestPattern(const UnicodeString& patternForm, UErrorCode& status) { return getBestPattern(patternForm, UDATPG_MATCH_NO_OPTIONS, status); } UnicodeString DateTimePatternGenerator::getBestPattern(const UnicodeString& patternForm, UDateTimePatternMatchOptions options, UErrorCode& status) { if (U_FAILURE(status)) { return UnicodeString(); } if (U_FAILURE(internalErrorCode)) { status = internalErrorCode; return UnicodeString(); } const UnicodeString *bestPattern = nullptr; UnicodeString dtFormat; UnicodeString resultPattern; int32_t flags = kDTPGNoFlags; int32_t dateMask=(1<<UDATPG_DAYPERIOD_FIELD) - 1; int32_t timeMask=(1<<UDATPG_FIELD_COUNT) - 1 - dateMask; UnicodeString patternFormMapped = mapSkeletonMetacharacters(patternForm, &flags, status); if (U_FAILURE(status)) { return UnicodeString(); } resultPattern.remove(); dtMatcher->set(patternFormMapped, fp); const PtnSkeleton* specifiedSkeleton = nullptr; bestPattern=getBestRaw(*dtMatcher, -1, distanceInfo, status, &specifiedSkeleton); if (U_FAILURE(status)) { return UnicodeString(); } if ( distanceInfo->missingFieldMask==0 && distanceInfo->extraFieldMask==0 ) { resultPattern = adjustFieldTypes(*bestPattern, specifiedSkeleton, flags, options); return resultPattern; } int32_t neededFields = dtMatcher->getFieldMask(); UnicodeString datePattern=getBestAppending(neededFields & dateMask, flags, status, options); UnicodeString timePattern=getBestAppending(neededFields & timeMask, flags, status, options); if (U_FAILURE(status)) { return UnicodeString(); } if (datePattern.length()==0) { if (timePattern.length()==0) { resultPattern.remove(); } else { return timePattern; } } if (timePattern.length()==0) { return datePattern; } resultPattern.remove(); status = U_ZERO_ERROR; PtnSkeleton* reqSkeleton = dtMatcher->getSkeletonPtr(); UDateFormatStyle style = UDAT_SHORT; int32_t monthFieldLen = reqSkeleton->baseOriginal.getFieldLength(UDATPG_MONTH_FIELD); if (monthFieldLen == 4) { if (reqSkeleton->baseOriginal.getFieldLength(UDATPG_WEEKDAY_FIELD) > 0) fillInMissing() argument 1672 UnicodeString field = fp->items[i]; adjustFieldTypes() local 2336 int32_t field = row->field; set() local 2735 clearField(int32_t field) clearField() argument 2748 populate(int32_t field, const UnicodeString& value) populate() argument 2752 populate(int32_t field, UChar ch, int32_t length) populate() argument 2768 appendFieldTo(int32_t field, UnicodeString& string) const appendFieldTo() argument [all...] |
| H A D | gregocal.cpp | 76 // range limit on the year field is smaller (~ +/-140000). [alan 3.0] 648 for (int32_t field = 0; field < UCAL_FIELD_COUNT; field++) { in validateFields() 650 if (field != UCAL_DATE && in validateFields() 651 field != UCAL_DAY_OF_YEAR && in validateFields() 652 isSet((UCalendarDateFields)field) && in validateFields() 653 ! boundsCheck(internalGet((UCalendarDateFields)field), (UCalendarDateFields)field)) in validateFields() 687 GregorianCalendar::boundsCheck(int32_t value, UCalendarDateFields field) cons 819 roll(EDateFields field, int32_t amount, UErrorCode& status) roll() argument 824 roll(UCalendarDateFields field, int32_t amount, UErrorCode& status) roll() argument 1059 getActualMinimum(EDateFields field, UErrorCode& ) const getActualMinimum() argument 1071 getActualMinimum(UCalendarDateFields field, UErrorCode& ) const getActualMinimum() argument 1086 handleGetLimit(UCalendarDateFields field, ELimitType limitType) const handleGetLimit() argument 1097 getActualMaximum(UCalendarDateFields field, UErrorCode& status) const getActualMaximum() argument [all...] |
| /third_party/node/deps/icu-small/source/i18n/ |
| H A D | dtptngen.cpp | 149 // patternChar, field, type, minLen, weight 280 static constexpr int32_t UDATPG_FIELD_KEY_MAX = 24; // max length of CLDR field tag (type + width) 849 UnicodeString field = fp->items[i]; in hackTimes() local 850 if ( fp->isQuoteLiteral(field) ) { in hackTimes() 858 if (fp->isPatternSeparator(field) && gotMm) { in hackTimes() 859 mmss+=field; in hackTimes() 862 char16_t ch=field.charAt(0); in hackTimes() 865 mmss+=field; in hackTimes() 872 mmss+= field; in hackTimes() 947 UDateTimePatternField field variable 958 UDateTimePatternField field = (UDateTimePatternField)i; fillInMissing() local 977 UDateTimePatternField field = dtpg.getFieldAndWidthIndices(key, &width); global() variable 993 U_ASSERT(i < 20); if (i < 10) { valueStr += (char16_t)(i+0x30); } else { valueStr += (char16_t)0x31; valueStr += (char16_t)(i-10 + 0x30); } valueStr.getTerminatedBuffer(); } for (int32_t j = 1; j < UDATPG_WIDTH_COUNT; j++) { UnicodeString& valueStr2 = dtpg.getMutableFieldDisplayName((UDateTimePatternField)i, (UDateTimePGDisplayWidth)j); if (valueStr2.isEmpty()) { valueStr2 = dtpg.getFieldDisplayName((UDateTimePatternField)i, (UDateTimePGDisplayWidth)(j-1)); } } } } }; struct DateTimePatternGenerator::AvailableFormatsSink : public ResourceSink { DateTimePatternGenerator& dtpg; UnicodeString conflictingPattern; AvailableFormatsSink(DateTimePatternGenerator& _dtpg) : dtpg(_dtpg) {} virtual ~AvailableFormatsSink(); virtual void put(const char *key, ResourceValue &value, UBool , UErrorCode &errorCode) override { const UnicodeString formatKey(key, -1, US_INV); if (!dtpg.isAvailableFormatSet(formatKey) ) { dtpg.setAvailableFormat(formatKey, errorCode); const UnicodeString& formatValue = value.getUnicodeString(errorCode); conflictingPattern.remove(); dtpg.addPatternWithSkeleton(formatValue, &formatKey, true, conflictingPattern, errorCode); } } }; DateTimePatternGenerator::AppendItemFormatsSink::~AppendItemFormatsSink() {} DateTimePatternGenerator::AppendItemNamesSink::~AppendItemNamesSink() {} DateTimePatternGenerator::AvailableFormatsSink::~AvailableFormatsSink() {} void DateTimePatternGenerator::addCLDRData(const Locale& locale, UErrorCode& errorCode) { if (U_FAILURE(errorCode)) { return; } UnicodeString rbPattern, value, field; CharString path; LocalUResourceBundlePointer rb(ures_open(nullptr, locale.getName(), &errorCode)); if (U_FAILURE(errorCode)) { return; } CharString calendarTypeToUse; getCalendarTypeToUse(locale, calendarTypeToUse, errorCode); if (U_FAILURE(errorCode)) { return; } UErrorCode err = U_ZERO_ERROR; AppendItemFormatsSink appendItemFormatsSink(*this); path.clear() .append(DT_DateTimeCalendarTag, errorCode) .append(�, errorCode) .append(calendarTypeToUse, errorCode) .append(�, errorCode) .append(DT_DateTimeAppendItemsTag, errorCode); if (U_FAILURE(errorCode)) { return; } ures_getAllChildrenWithFallback(rb.getAlias(), path.data(), appendItemFormatsSink, err); appendItemFormatsSink.fillInMissing(); err = U_ZERO_ERROR; AppendItemNamesSink appendItemNamesSink(*this); ures_getAllChildrenWithFallback(rb.getAlias(), DT_DateTimeFieldsTag, appendItemNamesSink, err); appendItemNamesSink.fillInMissing(); err = U_ZERO_ERROR; initHashtable(errorCode); if (U_FAILURE(errorCode)) { return; } AvailableFormatsSink availableFormatsSink(*this); path.clear() .append(DT_DateTimeCalendarTag, errorCode) .append(�, errorCode) .append(calendarTypeToUse, errorCode) .append(�, errorCode) .append(DT_DateTimeAvailableFormatsTag, errorCode); if (U_FAILURE(errorCode)) { return; } ures_getAllChildrenWithFallback(rb.getAlias(), path.data(), availableFormatsSink, err); } void DateTimePatternGenerator::initHashtable(UErrorCode& err) { if (U_FAILURE(err)) { return; } if (fAvailableFormatKeyHash!=nullptr) { return; } LocalPointer<Hashtable> hash(new Hashtable(false, err), err); if (U_SUCCESS(err)) { fAvailableFormatKeyHash = hash.orphan(); } } void DateTimePatternGenerator::setAppendItemFormat(UDateTimePatternField field, const UnicodeString& value) { appendItemFormats[field] = value; appendItemFormats[field].getTerminatedBuffer(); } const UnicodeString& DateTimePatternGenerator::getAppendItemFormat(UDateTimePatternField field) const { return appendItemFormats[field]; } void DateTimePatternGenerator::setAppendItemName(UDateTimePatternField field, const UnicodeString& value) { setFieldDisplayName(field, UDATPG_WIDTH_APPENDITEM, value); } const UnicodeString& DateTimePatternGenerator::getAppendItemName(UDateTimePatternField field) const { return fieldDisplayNames[field][UDATPG_WIDTH_APPENDITEM]; } void DateTimePatternGenerator::setFieldDisplayName(UDateTimePatternField field, UDateTimePGDisplayWidth width, const UnicodeString& value) { fieldDisplayNames[field][width] = value; fieldDisplayNames[field][width].getTerminatedBuffer(); } UnicodeString DateTimePatternGenerator::getFieldDisplayName(UDateTimePatternField field, UDateTimePGDisplayWidth width) const { return fieldDisplayNames[field][width]; } UnicodeString& DateTimePatternGenerator::getMutableFieldDisplayName(UDateTimePatternField field, UDateTimePGDisplayWidth width) { return fieldDisplayNames[field][width]; } void DateTimePatternGenerator::getAppendName(UDateTimePatternField field, UnicodeString& value) { value = SINGLE_QUOTE; value += fieldDisplayNames[field][UDATPG_WIDTH_APPENDITEM]; value += SINGLE_QUOTE; } UnicodeString DateTimePatternGenerator::getBestPattern(const UnicodeString& patternForm, UErrorCode& status) { return getBestPattern(patternForm, UDATPG_MATCH_NO_OPTIONS, status); } UnicodeString DateTimePatternGenerator::getBestPattern(const UnicodeString& patternForm, UDateTimePatternMatchOptions options, UErrorCode& status) { if (U_FAILURE(status)) { return UnicodeString(); } if (U_FAILURE(internalErrorCode)) { status = internalErrorCode; return UnicodeString(); } const UnicodeString *bestPattern = nullptr; UnicodeString dtFormat; UnicodeString resultPattern; int32_t flags = kDTPGNoFlags; int32_t dateMask=(1<<UDATPG_DAYPERIOD_FIELD) - 1; int32_t timeMask=(1<<UDATPG_FIELD_COUNT) - 1 - dateMask; UnicodeString patternFormMapped = mapSkeletonMetacharacters(patternForm, &flags, status); if (U_FAILURE(status)) { return UnicodeString(); } resultPattern.remove(); dtMatcher->set(patternFormMapped, fp); const PtnSkeleton* specifiedSkeleton = nullptr; bestPattern=getBestRaw(*dtMatcher, -1, distanceInfo, status, &specifiedSkeleton); if (U_FAILURE(status)) { return UnicodeString(); } if ( distanceInfo->missingFieldMask==0 && distanceInfo->extraFieldMask==0 ) { resultPattern = adjustFieldTypes(*bestPattern, specifiedSkeleton, flags, options); return resultPattern; } int32_t neededFields = dtMatcher->getFieldMask(); UnicodeString datePattern=getBestAppending(neededFields & dateMask, flags, status, options); UnicodeString timePattern=getBestAppending(neededFields & timeMask, flags, status, options); if (U_FAILURE(status)) { return UnicodeString(); } if (datePattern.length()==0) { if (timePattern.length()==0) { resultPattern.remove(); } else { return timePattern; } } if (timePattern.length()==0) { return datePattern; } resultPattern.remove(); status = U_ZERO_ERROR; PtnSkeleton* reqSkeleton = dtMatcher->getSkeletonPtr(); UDateFormatStyle style = UDAT_SHORT; int32_t monthFieldLen = reqSkeleton->baseOriginal.getFieldLength(UDATPG_MONTH_FIELD); if (monthFieldLen == 4) { if (reqSkeleton->baseOriginal.getFieldLength(UDATPG_WEEKDAY_FIELD) > 0) fillInMissing() argument 1664 UnicodeString field = fp->items[i]; adjustFieldTypes() local 2328 int32_t field = row->field; set() local 2727 clearField(int32_t field) clearField() argument 2740 populate(int32_t field, const UnicodeString& value) populate() argument 2744 populate(int32_t field, char16_t ch, int32_t length) populate() argument 2760 appendFieldTo(int32_t field, UnicodeString& string) const appendFieldTo() argument [all...] |
| H A D | gregocal.cpp | 76 // range limit on the year field is smaller (~ +/-140000). [alan 3.0] 624 for (int32_t field = 0; field < UCAL_FIELD_COUNT; field++) { in validateFields() 626 if (field != UCAL_DATE && in validateFields() 627 field != UCAL_DAY_OF_YEAR && in validateFields() 628 isSet((UCalendarDateFields)field) && in validateFields() 629 ! boundsCheck(internalGet((UCalendarDateFields)field), (UCalendarDateFields)field)) in validateFields() 663 GregorianCalendar::boundsCheck(int32_t value, UCalendarDateFields field) cons 795 roll(EDateFields field, int32_t amount, UErrorCode& status) roll() argument 1034 getActualMinimum(EDateFields field, UErrorCode& ) const getActualMinimum() argument 1046 getActualMinimum(UCalendarDateFields field, UErrorCode& ) const getActualMinimum() argument 1061 handleGetLimit(UCalendarDateFields field, ELimitType limitType) const handleGetLimit() argument 1072 getActualMaximum(UCalendarDateFields field, UErrorCode& status) const getActualMaximum() argument [all...] |
| /third_party/skia/third_party/externals/icu/source/i18n/ |
| H A D | dtptngen.cpp | 146 // patternChar, field, type, minLen, weight 279 static constexpr int32_t UDATPG_FIELD_KEY_MAX = 24; // max length of CLDR field tag (type + width) 836 UnicodeString field = fp->items[i]; in hackTimes() local 837 if ( fp->isQuoteLiteral(field) ) { in hackTimes() 845 if (fp->isPatternSeparator(field) && gotMm) { in hackTimes() 846 mmss+=field; in hackTimes() 849 UChar ch=field.charAt(0); in hackTimes() 852 mmss+=field; in hackTimes() 859 mmss+= field; in hackTimes() 940 UDateTimePatternField field in put() local 952 UDateTimePatternField field = (UDateTimePatternField)i; fillInMissing() local 974 UDateTimePatternField field = dtpg.getFieldAndWidthIndices(key, &width); put() local [all...] |
| H A D | gregocal.cpp | 76 // range limit on the year field is smaller (~ +/-140000). [alan 3.0] 648 for (int32_t field = 0; field < UCAL_FIELD_COUNT; field++) { in validateFields() 650 if (field != UCAL_DATE && in validateFields() 651 field != UCAL_DAY_OF_YEAR && in validateFields() 652 isSet((UCalendarDateFields)field) && in validateFields() 653 ! boundsCheck(internalGet((UCalendarDateFields)field), (UCalendarDateFields)field)) in validateFields() 687 GregorianCalendar::boundsCheck(int32_t value, UCalendarDateFields field) cons 819 roll(EDateFields field, int32_t amount, UErrorCode& status) roll() argument 824 roll(UCalendarDateFields field, int32_t amount, UErrorCode& status) roll() argument 1059 getActualMinimum(EDateFields field, UErrorCode& ) const getActualMinimum() argument 1071 getActualMinimum(UCalendarDateFields field, UErrorCode& ) const getActualMinimum() argument 1086 handleGetLimit(UCalendarDateFields field, ELimitType limitType) const handleGetLimit() argument 1097 getActualMaximum(UCalendarDateFields field, UErrorCode& status) const getActualMaximum() argument [all...] |
| /third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
| H A D | DateTimePatternGenerator.java | 203 // keep this pattern to populate other time field in consumeShortTimePattern() 216 int field = getAppendFormatNumber(key); in put() 217 if (field < 0) { return; } in put() 218 if (getAppendItemFormat(field) == null) { in put() 219 setAppendItemFormat(field, value.toString()); in put() 229 int field = fieldAndWidth / DisplayWidth.COUNT; in put() 233 if (getFieldDisplayName(field, width) == null) { in put() 234 setFieldDisplayName(field, width, value.toString()); in put() 654 // we have a good item. Adjust the field types in getBestPattern() 704 // 1,3,5 => hour field lengt in mapSkeletonMetacharacters() 1381 setAppendItemFormat(int field, String value) setAppendItemFormat() argument 1394 getAppendItemFormat(int field) getAppendItemFormat() argument 1409 setAppendItemName(int field, String value) setAppendItemName() argument 1423 getAppendItemName(int field) getAppendItemName() argument 1452 setFieldDisplayName(int field, DisplayWidth width, String value) setFieldDisplayName() argument 1468 getFieldDisplayName(int field, DisplayWidth width) getFieldDisplayName() argument 2487 getCanonicalChar(int field, char reference) getCanonicalChar() argument 2625 copyFieldFrom(SkeletonFields other, int field) copyFieldFrom() argument 2630 clearField(int field) clearField() argument 2635 getFieldChar(int field) getFieldChar() argument 2639 getFieldLength(int field) getFieldLength() argument 2643 populate(int field, String value) populate() argument 2652 populate(int field, char ch, int length) populate() argument 2660 isFieldEmpty(int field) isFieldEmpty() argument 2697 appendFieldTo(int field, StringBuilder sb) appendFieldTo() argument 2701 appendFieldTo(int field, StringBuilder sb, boolean canonical) appendFieldTo() argument 2752 fieldIsNumeric(int field) fieldIsNumeric() argument 2946 addMissing(int field) addMissing() argument 2949 addExtra(int field) addExtra() argument [all...] |
| /third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
| H A D | DateTimePatternGenerator.java | 176 // keep this pattern to populate other time field in consumeShortTimePattern() 191 int field = getAppendFormatNumber(key); in put() 192 assert field != -1; in put() 193 if (getAppendItemFormat(field) == null) { in put() 194 setAppendItemFormat(field, value.toString()); in put() 214 int field = fieldAndWidth / DisplayWidth.COUNT; in put() 219 if (getFieldDisplayName(field, width) == null) { in put() 220 setFieldDisplayName(field, width, value.toString()); in put() 633 // we have a good item. Adjust the field types in getBestPattern() 665 // 1,3,5 => hour field lengt in mapSkeletonMetacharacters() 1250 setAppendItemFormat(int field, String value) setAppendItemFormat() argument 1262 getAppendItemFormat(int field) getAppendItemFormat() argument 1276 setAppendItemName(int field, String value) setAppendItemName() argument 1289 getAppendItemName(int field) getAppendItemName() argument 1318 setFieldDisplayName(int field, DisplayWidth width, String value) setFieldDisplayName() argument 1333 getFieldDisplayName(int field, DisplayWidth width) getFieldDisplayName() argument 2349 getCanonicalChar(int field, char reference) getCanonicalChar() argument 2487 copyFieldFrom(SkeletonFields other, int field) copyFieldFrom() argument 2492 clearField(int field) clearField() argument 2497 getFieldChar(int field) getFieldChar() argument 2501 getFieldLength(int field) getFieldLength() argument 2505 populate(int field, String value) populate() argument 2514 populate(int field, char ch, int length) populate() argument 2522 isFieldEmpty(int field) isFieldEmpty() argument 2559 appendFieldTo(int field, StringBuilder sb) appendFieldTo() argument 2563 appendFieldTo(int field, StringBuilder sb, boolean canonical) appendFieldTo() argument 2614 fieldIsNumeric(int field) fieldIsNumeric() argument 2810 addMissing(int field) addMissing() argument 2813 addExtra(int field) addExtra() argument [all...] |
| /third_party/rust/crates/libc/src/unix/bsd/netbsdlike/openbsd/ |
| H A D | x86_64.rs | 63 // `fxsave64` is packed, so field access is unaligned. 64 // use {x} to create temporary storage, copy field to it, and do aligned access. 83 .field("fx_fcw", &{self.fx_fcw}) in fmt() 84 .field("fx_fsw", &{self.fx_fsw}) in fmt() 85 .field("fx_ftw", &{self.fx_ftw}) in fmt() 86 .field("fx_fop", &{self.fx_fop}) in fmt() 87 .field("fx_rip", &{self.fx_rip}) in fmt() 88 .field("fx_rdp", &{self.fx_rdp}) in fmt() 89 .field("fx_mxcsr", &{self.fx_mxcsr}) in fmt() 90 .field("fx_mxcsr_mas in fmt() [all...] |
| /third_party/protobuf/src/google/protobuf/ |
| H A D | descriptor.cc | 603 bool AddExtension(const FieldDescriptor* field); 736 bool AddFieldByNumber(const FieldDescriptor* field); 739 // Adds the field to the lowercase_name and camelcase_name maps. Never 740 // fails because we allow duplicates; the first field by the name wins. 741 void AddFieldByStylizedNames(const FieldDescriptor* field); 760 const void* FindParentForFieldsByMap(const FieldDescriptor* field) const; 957 const FieldDescriptor* field) const { in FindParentForFieldsByMap() 958 if (field->is_extension()) { in FindParentForFieldsByMap() 959 if (field->extension_scope() == nullptr) { in FindParentForFieldsByMap() 960 return field in FindParentForFieldsByMap() 1123 AddFieldByStylizedNames( const FieldDescriptor* field) AddFieldByStylizedNames() argument 1151 AddFieldByNumber(const FieldDescriptor* field) AddFieldByNumber() argument 1162 AddExtension(const FieldDescriptor* field) AddExtension() argument 4200 const FieldDescriptor* field = AllocateOptionsImpl() local 4681 const FieldDescriptor* field = result->field(i); BuildMessage() local 5526 const FieldDescriptor* field = message->field(i); CrossLinkMessage() local 5570 CrossLinkField(FieldDescriptor* field, const FieldDescriptorProto& proto) CrossLinkField() argument 6023 ValidateProto3Field(FieldDescriptor* field, const FieldDescriptorProto& proto) ValidateProto3Field() argument 6093 ValidateFieldOptions( FieldDescriptor* field, const FieldDescriptorProto& proto) ValidateFieldOptions() argument 6228 ValidateMapEntry(FieldDescriptor* field, const FieldDescriptorProto& proto) ValidateMapEntry() argument 6321 const FieldDescriptor* field = message->field(i); DetectMapConflicts() local 6357 ValidateJSType(FieldDescriptor* field, const FieldDescriptorProto& proto) ValidateJSType() argument 6534 const FieldDescriptor* field = nullptr; InterpretSingleOption() local 6794 const FieldDescriptor* field = AddWithoutInterpreting() local [all...] |
| H A D | generated_message_util.cc | 348 // Almost the same as above only it doesn't output the length field. 370 static void Serialize(const void* field, const FieldMetadata& md, O* output) { in Serialize() 372 SerializeTo<type>(field, output); in Serialize() 379 static void Serialize(const void* field, const FieldMetadata& md, O* output) { in Serialize() 381 SerializeTo<WireFormatLite::TYPE_STRING>(&Get<ArenaStringPtr>(field).Get(), in Serialize() 393 static void Serialize(const void* field, const FieldMetadata& md, O* output) { in Serialize() 395 SerializeGroupTo(Get<const MessageLite*>(field), in Serialize() 404 static void Serialize(const void* field, const FieldMetadata& md, O* output) { in Serialize() 406 SerializeMessageTo(Get<const MessageLite*>(field), in Serialize() 414 static void Serialize(const void* field, cons 553 SerializeNotImplemented(int field) SerializeNotImplemented() argument [all...] |
| /third_party/node/deps/v8/src/objects/ |
| H A D | name-inl.h | 114 uint32_t field = raw_hash_field(); in EnsureHash() local 115 if (IsHashFieldComputed(field)) return HashBits::decode(field); in EnsureHash() 122 uint32_t field = raw_hash_field(); in EnsureHash() local 123 if (IsHashFieldComputed(field)) return HashBits::decode(field); in EnsureHash() 129 uint32_t field = raw_hash_field(); in hash() local 130 DCHECK(IsHashFieldComputed(field)); in hash() 131 return HashBits::decode(field); in hash()
|
| /third_party/skia/third_party/externals/icu/source/i18n/unicode/ |
| H A D | gregocal.h | 59 * <p>Values calculated for the <code>WEEK_OF_YEAR</code> field range from 1 to 238 * @param year The value used to set the YEAR time field in the calendar. 239 * @param month The value used to set the MONTH time field in the calendar. Month 241 * @param date The value used to set the DATE time field in the calendar. 252 * @param year The value used to set the YEAR time field in the calendar. 253 * @param month The value used to set the MONTH time field in the calendar. Month 255 * @param date The value used to set the DATE time field in the calendar. 256 * @param hour The value used to set the HOUR_OF_DAY time field in the calendar. 257 * @param minute The value used to set the MINUTE time field in the calendar. 268 * @param year The value used to set the YEAR time field i [all...] |
| /third_party/protobuf/python/google/protobuf/internal/ |
| H A D | extension_dict.py | 95 'Uninitialized concrete class found for field %r (message type %r)' 127 my_fields = [field for field in my_fields if field.is_extension] 128 other_fields = [field for field in other_fields if field.is_extension] 138 extension_fields = [field for field in fields if field[ [all...] |
| H A D | descriptor_test.py | 73 message_proto.field.add( 469 field = message_descriptor.fields_by_name['repeated_int32'] 470 self.assertEqual(field.default_value, []) 471 field = message_descriptor.fields_by_name['repeated_nested_message'] 472 self.assertEqual(field.default_value, []) 473 field = message_descriptor.fields_by_name['optionalgroup'] 474 self.assertEqual(field.default_value, None) 475 field = message_descriptor.fields_by_name['optional_nested_message'] 476 self.assertEqual(field.default_value, None) 500 # Test field container [all...] |
| /third_party/rust/crates/libc/src/unix/linux_like/android/b64/x86_64/ |
| H A D | mod.rs | 127 .field("uc_sigmask", unsafe { &self.uc_sigmask }) in fmt() 198 // Ignore padding field in eq() 205 .field("significand", &self.significand) in fmt() 206 .field("exponent", &self.exponent) in fmt() 207 // Ignore padding field in fmt() 215 // Ignore padding field in hash() 231 // Ignore padding field in eq() 238 .field("cwd", &self.cwd) in fmt() 239 .field("swd", &self.swd) in fmt() 240 .field("ft in fmt() [all...] |
| /third_party/typescript/tests/baselines/reference/ |
| H A D | objectAssignLikeNonUnionResult.js | 3 field: number; 5 const defaultValue: Interface = { field: 1 }; 9 // Displayed type: Interface & { field: number } 11 const data1 = assign(defaultValue, Date.now() > 3 ? { field: 2 } : {}); 22 var defaultValue = { field: 1 };
23 // Displayed type: Interface & { field: number }
25 var data1 = assign(defaultValue, Date.now() > 3 ? { field: 2 } : {});
|
| /third_party/protobuf/php/src/Google/Protobuf/Internal/ |
| H A D | OneofDescriptor.php | 57 public function addField(FieldDescriptor $field) 59 $this->fields[] = $field; 71 foreach ($desc->getField() as $field) { 72 if ($field->getOneofIndex() == $index) { 73 $oneof->addField($field);
|
| /third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/ |
| H A D | wpa_helpers.h | 16 int get_wpa_status(const char *ifname, const char *field, char *obuf, 28 int set_network(const char *ifname, int id, const char *field, 30 int set_network_quoted(const char *ifname, int id, const char *field, 33 int set_cred(const char *ifname, int id, const char *field, const char *value); 34 int set_cred_quoted(const char *ifname, int id, const char *field,
|
| /third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/ |
| H A D | wpa_helpers.h | 16 int get_wpa_status(const char *ifname, const char *field, char *obuf, 28 int set_network(const char *ifname, int id, const char *field, 30 int set_network_quoted(const char *ifname, int id, const char *field, 33 int set_cred(const char *ifname, int id, const char *field, const char *value); 34 int set_cred_quoted(const char *ifname, int id, const char *field,
|
| /third_party/python/Tools/c-analyzer/c_common/ |
| H A D | tables.py | 246 ( \w+ ) # <field> 282 label, field, align, width1, width2, fmt = m.groups() 284 label = field 296 return field, label, width, fmt 305 label, field, width, fmt = spec 309 label, field, fmt = spec 310 if not field: 311 label, field = None, label 312 elif not isinstance(field, str) or not field [all...] |
| /third_party/mesa3d/src/amd/registers/ |
| H A D | parse_kernel_headers.py | 65 re_shift = re.compile(r'^#define (?P<name>\w+)__(?P<field>\w+)__SHIFT\s+(?P<value>\w+)\n') 69 re_mask = re.compile(r'^#define (?P<name>\w+)__(?P<field>\w+)_MASK\s+(?P<value>[0-9a-fA-Fx]+)L?\n') 95 # Mapping from field names to enum types 98 # field: [type1] - all registers use the same enum 100 # field: [type1, reg1, type2, reg2, ...] - apply different enums to different registers 650 # Register field definitions that are missing in kernel headers 753 field = r.group('field') 760 d[name][field] = value 805 for (field, shif [all...] |
| /third_party/protobuf/csharp/src/Google.Protobuf/ |
| H A D | UnknownFieldSet.cs | 43 /// but whose field numbers or types are unrecognized. This most frequently 63 /// Checks whether or not the given field number is present in the set. 65 internal bool HasField(int field) in HasField() argument 67 return fields.ContainsKey(field); in HasField() 112 /// Checks if two unknown field sets are equal. 142 /// Gets the unknown field set's hash code. 147 foreach (KeyValuePair<int, UnknownField> field in fields) in GetHashCode() 149 // Use ^ here to make the field order irrelevant. in GetHashCode() 150 int hash = field.Key.GetHashCode() ^ field in GetHashCode() 188 AddOrReplaceField(int number, UnknownField field) AddOrReplaceField() argument 361 MergeField(int number, UnknownField field) MergeField() argument [all...] |