1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/icu/source/i18n/decfmtst.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,65 @@ 1.4 +/* 1.5 +******************************************************************************* 1.6 +* Copyright (C) 2009-2013, International Business Machines Corporation and * 1.7 +* others. All Rights Reserved. * 1.8 +******************************************************************************* 1.9 +* 1.10 +* This file contains declarations for the class DecimalFormatStaticSets 1.11 +* 1.12 +* DecimalFormatStaticSets holds the UnicodeSets that are needed for lenient 1.13 +* parsing of decimal and group separators. 1.14 +******************************************************************************** 1.15 +*/ 1.16 + 1.17 +#ifndef DECFMTST_H 1.18 +#define DECFMTST_H 1.19 + 1.20 +#include "unicode/utypes.h" 1.21 + 1.22 + #if !UCONFIG_NO_FORMATTING 1.23 + 1.24 +U_NAMESPACE_BEGIN 1.25 + 1.26 +class UnicodeSet; 1.27 + 1.28 + 1.29 +class DecimalFormatStaticSets : public UMemory 1.30 +{ 1.31 +public: 1.32 + // Constructor and Destructor not for general use. 1.33 + // Public to permit access from plain C implementation functions. 1.34 + DecimalFormatStaticSets(UErrorCode &status); 1.35 + ~DecimalFormatStaticSets(); 1.36 + 1.37 + /** 1.38 + * Return a pointer to a lazy-initialized singleton instance of this class. 1.39 + */ 1.40 + static const DecimalFormatStaticSets *getStaticSets(UErrorCode &status); 1.41 + 1.42 + static const UnicodeSet *getSimilarDecimals(UChar32 decimal, UBool strictParse); 1.43 + 1.44 + UnicodeSet *fDotEquivalents; 1.45 + UnicodeSet *fCommaEquivalents; 1.46 + UnicodeSet *fOtherGroupingSeparators; 1.47 + UnicodeSet *fDashEquivalents; 1.48 + 1.49 + UnicodeSet *fStrictDotEquivalents; 1.50 + UnicodeSet *fStrictCommaEquivalents; 1.51 + UnicodeSet *fStrictOtherGroupingSeparators; 1.52 + UnicodeSet *fStrictDashEquivalents; 1.53 + 1.54 + UnicodeSet *fDefaultGroupingSeparators; 1.55 + UnicodeSet *fStrictDefaultGroupingSeparators; 1.56 + 1.57 + UnicodeSet *fMinusSigns; 1.58 + UnicodeSet *fPlusSigns; 1.59 +private: 1.60 + void cleanup(); 1.61 + 1.62 +}; 1.63 + 1.64 + 1.65 +U_NAMESPACE_END 1.66 + 1.67 +#endif // !UCONFIG_NO_FORMATTING 1.68 +#endif // DECFMTST_H