Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* |
michael@0 | 2 | ******************************************************************************* |
michael@0 | 3 | * Copyright (C) 2009-2013, International Business Machines Corporation and * |
michael@0 | 4 | * others. All Rights Reserved. * |
michael@0 | 5 | ******************************************************************************* |
michael@0 | 6 | * |
michael@0 | 7 | * This file contains declarations for the class DecimalFormatStaticSets |
michael@0 | 8 | * |
michael@0 | 9 | * DecimalFormatStaticSets holds the UnicodeSets that are needed for lenient |
michael@0 | 10 | * parsing of decimal and group separators. |
michael@0 | 11 | ******************************************************************************** |
michael@0 | 12 | */ |
michael@0 | 13 | |
michael@0 | 14 | #ifndef DECFMTST_H |
michael@0 | 15 | #define DECFMTST_H |
michael@0 | 16 | |
michael@0 | 17 | #include "unicode/utypes.h" |
michael@0 | 18 | |
michael@0 | 19 | #if !UCONFIG_NO_FORMATTING |
michael@0 | 20 | |
michael@0 | 21 | U_NAMESPACE_BEGIN |
michael@0 | 22 | |
michael@0 | 23 | class UnicodeSet; |
michael@0 | 24 | |
michael@0 | 25 | |
michael@0 | 26 | class DecimalFormatStaticSets : public UMemory |
michael@0 | 27 | { |
michael@0 | 28 | public: |
michael@0 | 29 | // Constructor and Destructor not for general use. |
michael@0 | 30 | // Public to permit access from plain C implementation functions. |
michael@0 | 31 | DecimalFormatStaticSets(UErrorCode &status); |
michael@0 | 32 | ~DecimalFormatStaticSets(); |
michael@0 | 33 | |
michael@0 | 34 | /** |
michael@0 | 35 | * Return a pointer to a lazy-initialized singleton instance of this class. |
michael@0 | 36 | */ |
michael@0 | 37 | static const DecimalFormatStaticSets *getStaticSets(UErrorCode &status); |
michael@0 | 38 | |
michael@0 | 39 | static const UnicodeSet *getSimilarDecimals(UChar32 decimal, UBool strictParse); |
michael@0 | 40 | |
michael@0 | 41 | UnicodeSet *fDotEquivalents; |
michael@0 | 42 | UnicodeSet *fCommaEquivalents; |
michael@0 | 43 | UnicodeSet *fOtherGroupingSeparators; |
michael@0 | 44 | UnicodeSet *fDashEquivalents; |
michael@0 | 45 | |
michael@0 | 46 | UnicodeSet *fStrictDotEquivalents; |
michael@0 | 47 | UnicodeSet *fStrictCommaEquivalents; |
michael@0 | 48 | UnicodeSet *fStrictOtherGroupingSeparators; |
michael@0 | 49 | UnicodeSet *fStrictDashEquivalents; |
michael@0 | 50 | |
michael@0 | 51 | UnicodeSet *fDefaultGroupingSeparators; |
michael@0 | 52 | UnicodeSet *fStrictDefaultGroupingSeparators; |
michael@0 | 53 | |
michael@0 | 54 | UnicodeSet *fMinusSigns; |
michael@0 | 55 | UnicodeSet *fPlusSigns; |
michael@0 | 56 | private: |
michael@0 | 57 | void cleanup(); |
michael@0 | 58 | |
michael@0 | 59 | }; |
michael@0 | 60 | |
michael@0 | 61 | |
michael@0 | 62 | U_NAMESPACE_END |
michael@0 | 63 | |
michael@0 | 64 | #endif // !UCONFIG_NO_FORMATTING |
michael@0 | 65 | #endif // DECFMTST_H |