]> git.saurik.com Git - apple/icu.git/blob - icuSources/i18n/smpdtfst.h
ICU-461.18.tar.gz
[apple/icu.git] / icuSources / i18n / smpdtfst.h
1 //
2 // smpdtfst.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 SimpleDateFormatStaticSets
8 //
9 // SimpleDateFormatStaticSets holds the UnicodeSets that are needed for lenient
10 // parsing of literal characters in date/time strings.
11 //
12
13 #ifndef SMPDTFST_H
14 #define SMPDTFST_H
15
16 #include "unicode/utypes.h"
17
18 #if !UCONFIG_NO_FORMATTING
19
20 #include "unicode/udat.h"
21
22 U_NAMESPACE_BEGIN
23
24 class UnicodeSet;
25
26
27 class SimpleDateFormatStaticSets : public UMemory
28 {
29 public:
30 static SimpleDateFormatStaticSets *gStaticSets; // Ptr to all lazily initialized constant
31 // shared sets.
32
33 SimpleDateFormatStaticSets(UErrorCode *status);
34 ~SimpleDateFormatStaticSets();
35
36 static void initSets(UErrorCode *status);
37 static UBool cleanup();
38
39 static UnicodeSet *getIgnorables(UDateFormatField fieldIndex);
40
41 private:
42 UnicodeSet *fDateIgnorables;
43 UnicodeSet *fTimeIgnorables;
44 UnicodeSet *fOtherIgnorables;
45 };
46
47
48 U_NAMESPACE_END
49
50 #endif // #if !UCONFIG_NO_FORMATTING
51 #endif // SMPDTFST_H