4 // Copyright (C) 2009, International Business Machines Corporation and others.
5 // All Rights Reserved.
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.
16 #include "unicode/utypes.h"
18 #if !UCONFIG_NO_FORMATTING
25 class DecimalFormatStaticSets
: public UMemory
28 static DecimalFormatStaticSets
*gStaticSets
; // Ptr to all lazily initialized constant
31 DecimalFormatStaticSets(UErrorCode
*status
);
32 ~DecimalFormatStaticSets();
34 static void initSets(UErrorCode
*status
);
35 static UBool
cleanup();
37 static UnicodeSet
*getSimilarDecimals(UChar32 decimal
, UBool strictParse
, UnicodeSet
*fallback
);
39 UnicodeSet
*fDotEquivalents
;
40 UnicodeSet
*fCommaEquivalents
;
41 UnicodeSet
*fOtherGroupingSeparators
;
42 UnicodeSet
*fDashEquivalents
;
44 UnicodeSet
*fStrictDotEquivalents
;
45 UnicodeSet
*fStrictCommaEquivalents
;
46 UnicodeSet
*fStrictOtherGroupingSeparators
;
47 UnicodeSet
*fStrictDashEquivalents
;
49 UnicodeSet
*fDefaultGroupingSeparators
;
50 UnicodeSet
*fStrictDefaultGroupingSeparators
;
57 #endif // !UCONFIG_NO_FORMATTING