]>
Commit | Line | Data |
---|---|---|
4388f060 A |
1 | /* |
2 | ******************************************************************************* | |
3 | * Copyright (C) 2009-2011, International Business Machines Corporation and * | |
4 | * others. All Rights Reserved. * | |
5 | ******************************************************************************* | |
6 | * | |
7 | * This file contains declarations for the class SimpleDateFormatStaticSets | |
8 | * | |
9 | * SimpleDateFormatStaticSets holds the UnicodeSets that are needed for lenient | |
10 | * parsing of literal characters in date/time strings. | |
11 | ******************************************************************************** | |
12 | */ | |
46f4442e A |
13 | |
14 | #ifndef SMPDTFST_H | |
15 | #define SMPDTFST_H | |
16 | ||
17 | #include "unicode/utypes.h" | |
18 | ||
19 | #if !UCONFIG_NO_FORMATTING | |
20 | ||
21 | #include "unicode/udat.h" | |
22 | ||
23 | U_NAMESPACE_BEGIN | |
24 | ||
25 | class UnicodeSet; | |
26 | ||
27 | ||
28 | class SimpleDateFormatStaticSets : public UMemory | |
29 | { | |
30 | public: | |
31 | static SimpleDateFormatStaticSets *gStaticSets; // Ptr to all lazily initialized constant | |
32 | // shared sets. | |
33 | ||
34 | SimpleDateFormatStaticSets(UErrorCode *status); | |
35 | ~SimpleDateFormatStaticSets(); | |
36 | ||
37 | static void initSets(UErrorCode *status); | |
38 | static UBool cleanup(); | |
39 | ||
40 | static UnicodeSet *getIgnorables(UDateFormatField fieldIndex); | |
41 | ||
42 | private: | |
43 | UnicodeSet *fDateIgnorables; | |
44 | UnicodeSet *fTimeIgnorables; | |
45 | UnicodeSet *fOtherIgnorables; | |
46 | }; | |
47 | ||
48 | ||
49 | U_NAMESPACE_END | |
50 | ||
51 | #endif // #if !UCONFIG_NO_FORMATTING | |
52 | #endif // SMPDTFST_H |