1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /*
4 *******************************************************************************
5 * Copyright (C) 2009-2013, International Business Machines Corporation and    *
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 */
15 
16 #ifndef SMPDTFST_H
17 #define SMPDTFST_H
18 
19 #include "unicode/uobject.h"
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:
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
53