586b4e669efff62eeedf33303f8732409ba97fd1
[platform/upstream/icu.git] / source / i18n / smpdtfst.h
1 // Copyright (C) 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/utypes.h"
20
21 #if !UCONFIG_NO_FORMATTING
22
23 #include "unicode/udat.h"
24
25 U_NAMESPACE_BEGIN
26
27 class  UnicodeSet;
28
29
30 class SimpleDateFormatStaticSets : public UMemory
31 {
32 public:
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