1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 *******************************************************************************
5 * Copyright (C) 2009-2016, International Business Machines Corporation and
6 * others. All Rights Reserved.
7 *******************************************************************************
9 * This file contains declarations for the class DecimalFormatStaticSets
11 * DecimalFormatStaticSets holds the UnicodeSets that are needed for lenient
12 * parsing of decimal and group separators.
13 ********************************************************************************
19 #include "unicode/utypes.h"
21 #if !UCONFIG_NO_FORMATTING
23 #include "unicode/uobject.h"
30 class DecimalFormatStaticSets
: public UMemory
33 // Constructor and Destructor not for general use.
34 // Public to permit access from plain C implementation functions.
35 DecimalFormatStaticSets(UErrorCode
&status
);
36 ~DecimalFormatStaticSets();
39 * Return a pointer to a lazy-initialized singleton instance of this class.
41 static const DecimalFormatStaticSets
*getStaticSets(UErrorCode
&status
);
43 static const UnicodeSet
*getSimilarDecimals(UChar32 decimal
, UBool strictParse
);
45 UnicodeSet
*fDotEquivalents
;
46 UnicodeSet
*fCommaEquivalents
;
47 UnicodeSet
*fOtherGroupingSeparators
;
48 UnicodeSet
*fDashEquivalents
;
50 UnicodeSet
*fStrictDotEquivalents
;
51 UnicodeSet
*fStrictCommaEquivalents
;
52 UnicodeSet
*fStrictOtherGroupingSeparators
;
53 UnicodeSet
*fStrictDashEquivalents
;
55 UnicodeSet
*fDefaultGroupingSeparators
;
56 UnicodeSet
*fStrictDefaultGroupingSeparators
;
58 UnicodeSet
*fMinusSigns
;
59 UnicodeSet
*fPlusSigns
;
68 #endif // !UCONFIG_NO_FORMATTING