// © 2017 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html #include "unicode/utypes.h" #if !UCONFIG_NO_FORMATTING #ifndef __NUMBER_DECNUM_H__ #define __NUMBER_DECNUM_H__ #include "decNumber.h" #include "charstr.h" #include "bytesinkutil.h" U_NAMESPACE_BEGIN #define DECNUM_INITIAL_CAPACITY … // Export an explicit template instantiation of the MaybeStackHeaderAndArray that is used as a data member of DecNum. // When building DLLs for Windows this is required even though no direct access to the MaybeStackHeaderAndArray leaks out of the i18n library. // (See digitlst.h, pluralaffix.h, datefmt.h, and others for similar examples.) #if U_PF_WINDOWS <= U_PLATFORM && U_PLATFORM <= U_PF_CYGWIN template class U_I18N_API MaybeStackHeaderAndArray<decNumber, char, DECNUM_INITIAL_CAPACITY>; #endif namespace number { namespace impl { /** A very thin C++ wrapper around decNumber.h */ // Exported as U_I18N_API for tests class U_I18N_API DecNum : public UMemory { … }; } // namespace impl } // namespace number U_NAMESPACE_END #endif // __NUMBER_DECNUM_H__ #endif /* #if !UCONFIG_NO_FORMATTING */