2 *******************************************************************************
3 * Copyright (C) 2009-2011, International Business Machines Corporation and *
4 * others. All Rights Reserved. *
5 *******************************************************************************
7 * This file contains declarations for the class DecimalFormatStaticSets
9 * DecimalFormatStaticSets holds the UnicodeSets that are needed for lenient
10 * parsing of decimal and group separators.
11 ********************************************************************************
17 #include "unicode/utypes.h"
19 #if !UCONFIG_NO_FORMATTING
26 class DecimalFormatStaticSets
: public UMemory
29 static DecimalFormatStaticSets
*gStaticSets
; // Ptr to all lazily initialized constant
32 DecimalFormatStaticSets(UErrorCode
*status
);
33 ~DecimalFormatStaticSets();
35 static void initSets(UErrorCode
*status
);
36 static UBool
cleanup();
38 static const UnicodeSet
*getSimilarDecimals(UChar32 decimal
, UBool strictParse
);
40 UnicodeSet
*fDotEquivalents
;
41 UnicodeSet
*fCommaEquivalents
;
42 UnicodeSet
*fOtherGroupingSeparators
;
43 UnicodeSet
*fDashEquivalents
;
45 UnicodeSet
*fStrictDotEquivalents
;
46 UnicodeSet
*fStrictCommaEquivalents
;
47 UnicodeSet
*fStrictOtherGroupingSeparators
;
48 UnicodeSet
*fStrictDashEquivalents
;
50 UnicodeSet
*fDefaultGroupingSeparators
;
51 UnicodeSet
*fStrictDefaultGroupingSeparators
;
58 #endif // !UCONFIG_NO_FORMATTING