X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/249c4c5ea9376c24572daf9c2effa7484a282f14..3d1f044b704633e2e541231cd17ae9ecf9ad5c7a:/icuSources/i18n/number_decimfmtprops.h?ds=sidebyside diff --git a/icuSources/i18n/number_decimfmtprops.h b/icuSources/i18n/number_decimfmtprops.h index f288b6e0..b4e9b30d 100644 --- a/icuSources/i18n/number_decimfmtprops.h +++ b/icuSources/i18n/number_decimfmtprops.h @@ -21,10 +21,16 @@ U_NAMESPACE_BEGIN // data member of CurrencyPluralInfoWrapper. // (When building DLLs for Windows this is required.) #if U_PF_WINDOWS <= U_PLATFORM && U_PLATFORM <= U_PF_CYGWIN +#if defined(_MSC_VER) // Ignore warning 4661 as LocalPointerBase does not use operator== or operator!= -#pragma warning(suppress: 4661) +#pragma warning(push) +#pragma warning(disable: 4661) +#endif template class U_I18N_API LocalPointerBase; template class U_I18N_API LocalPointer; +#if defined(_MSC_VER) +#pragma warning(pop) +#endif #endif namespace number { @@ -134,6 +140,7 @@ struct U_I18N_API DecimalFormatProperties : public UMemory { NullableValue roundingMode; int32_t secondaryGroupingSize; bool signAlwaysShown; + bool formatFullPrecision; // Apple addition for DecimalFormatProperties(); @@ -149,6 +156,11 @@ struct U_I18N_API DecimalFormatProperties : public UMemory { */ bool equalsDefaultExceptFastFormat() const; + /** + * Returns the default DecimalFormatProperties instance. + */ + static const DecimalFormatProperties& getDefault(); + private: bool _equals(const DecimalFormatProperties& other, bool ignoreForFastFormat) const; };