]>
Commit | Line | Data |
---|---|---|
f3c0d7a5 A |
1 | // © 2016 and later: Unicode, Inc. and others. |
2 | // License & terms of use: http://www.unicode.org/copyright.html | |
4388f060 A |
3 | /* |
4 | ******************************************************************************* | |
57a6839d | 5 | * Copyright (C) 2009-2013, International Business Machines Corporation and * |
4388f060 A |
6 | * others. All Rights Reserved. * |
7 | ******************************************************************************* | |
8 | * | |
9 | * This file contains declarations for the class SimpleDateFormatStaticSets | |
10 | * | |
11 | * SimpleDateFormatStaticSets holds the UnicodeSets that are needed for lenient | |
12 | * parsing of literal characters in date/time strings. | |
13 | ******************************************************************************** | |
14 | */ | |
46f4442e A |
15 | |
16 | #ifndef SMPDTFST_H | |
17 | #define SMPDTFST_H | |
18 | ||
f3c0d7a5 | 19 | #include "unicode/uobject.h" |
46f4442e A |
20 | #include "unicode/utypes.h" |
21 | ||
22 | #if !UCONFIG_NO_FORMATTING | |
23 | ||
24 | #include "unicode/udat.h" | |
25 | ||
26 | U_NAMESPACE_BEGIN | |
27 | ||
28 | class UnicodeSet; | |
29 | ||
30 | ||
31 | class SimpleDateFormatStaticSets : public UMemory | |
32 | { | |
33 | public: | |
57a6839d | 34 | SimpleDateFormatStaticSets(UErrorCode &status); |
46f4442e A |
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 |