]> git.saurik.com Git - apple/icu.git/blob - icuSources/i18n/decfmtst.h
ICU-461.12.tar.gz
[apple/icu.git] / icuSources / i18n / decfmtst.h
1 //
2 // decfmtst.h
3 //
4 // Copyright (C) 2009, International Business Machines Corporation and others.
5 // All Rights Reserved.
6 //
7 // This file contains declarations for the class DecimalFormatStaticSets
8 //
9 // DecimalFormatStaticSets holds the UnicodeSets that are needed for lenient
10 // parsing of decimal and group separators.
11 //
12
13 #ifndef DECFMTST_H
14 #define DECFMTST_H
15
16 #include "unicode/utypes.h"
17
18 #if !UCONFIG_NO_FORMATTING
19
20 U_NAMESPACE_BEGIN
21
22 class UnicodeSet;
23
24
25 class DecimalFormatStaticSets : public UMemory
26 {
27 public:
28 static DecimalFormatStaticSets *gStaticSets; // Ptr to all lazily initialized constant
29 // shared sets.
30
31 DecimalFormatStaticSets(UErrorCode *status);
32 ~DecimalFormatStaticSets();
33
34 static void initSets(UErrorCode *status);
35 static UBool cleanup();
36
37 static UnicodeSet *getSimilarDecimals(UChar32 decimal, UBool strictParse, UnicodeSet *fallback);
38
39 UnicodeSet *fDotEquivalents;
40 UnicodeSet *fCommaEquivalents;
41 UnicodeSet *fOtherGroupingSeparators;
42 UnicodeSet *fDashEquivalents;
43
44 UnicodeSet *fStrictDotEquivalents;
45 UnicodeSet *fStrictCommaEquivalents;
46 UnicodeSet *fStrictOtherGroupingSeparators;
47 UnicodeSet *fStrictDashEquivalents;
48
49 UnicodeSet *fDefaultGroupingSeparators;
50 UnicodeSet *fStrictDefaultGroupingSeparators;
51
52 };
53
54
55 U_NAMESPACE_END
56
57 #endif // !UCONFIG_NO_FORMATTING
58 #endif // DECFMTST_H