]> git.saurik.com Git - apple/icu.git/blame - icuSources/i18n/decfmtst.h
ICU-400.42.tar.gz
[apple/icu.git] / icuSources / i18n / decfmtst.h
CommitLineData
46f4442e
A
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
18U_NAMESPACE_BEGIN
19
20class UnicodeSet;
21
22
23class DecimalFormatStaticSets : public UMemory
24{
25public:
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;
7393aa2f 40 UnicodeSet *fDashEquivalents;
46f4442e
A
41
42 UnicodeSet *fStrictDotEquivalents;
43 UnicodeSet *fStrictCommaEquivalents;
44 UnicodeSet *fStrictOtherGroupingSeparators;
7393aa2f 45 UnicodeSet *fStrictDashEquivalents;
46f4442e
A
46
47 UnicodeSet *fDefaultGroupingSeparators;
48 UnicodeSet *fStrictDefaultGroupingSeparators;
49
50};
51
52
53U_NAMESPACE_END
54
55#endif // REGEXST_H