]> git.saurik.com Git - apple/icu.git/blob - icuSources/i18n/decfmtst.h
8c3d851cff6f123948bc1f14b6e6e92cda896235
[apple/icu.git] / icuSources / i18n / decfmtst.h
1 //
2 // regexst.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 U_NAMESPACE_BEGIN
19
20 class UnicodeSet;
21
22
23 class DecimalFormatStaticSets : public UMemory
24 {
25 public:
26 static DecimalFormatStaticSets *gStaticSets; // Ptr to all lazily initialized constant
27 // shared sets.
28
29 DecimalFormatStaticSets(UErrorCode *status);
30 ~DecimalFormatStaticSets();
31
32 static void initSets(UErrorCode *status);
33 static UBool cleanup();
34
35 static UnicodeSet *getSimilarDecimals(UChar32 decimal, UBool strictParse, UnicodeSet *fallback);
36
37 UnicodeSet *fDotEquivalents;
38 UnicodeSet *fCommaEquivalents;
39 UnicodeSet *fOtherGroupingSeparators;
40
41 UnicodeSet *fStrictDotEquivalents;
42 UnicodeSet *fStrictCommaEquivalents;
43 UnicodeSet *fStrictOtherGroupingSeparators;
44
45 UnicodeSet *fDefaultGroupingSeparators;
46 UnicodeSet *fStrictDefaultGroupingSeparators;
47
48 };
49
50
51 U_NAMESPACE_END
52
53 #endif // REGEXST_H