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