2 *******************************************************************************
3 * Copyright (C) 2009-2011, International Business Machines Corporation and *
4 * others. All Rights Reserved. *
5 *******************************************************************************
7 * This file contains declarations for the class SimpleDateFormatStaticSets
9 * SimpleDateFormatStaticSets holds the UnicodeSets that are needed for lenient
10 * parsing of literal characters in date/time strings.
11 ********************************************************************************
17 #include "unicode/utypes.h"
19 #if !UCONFIG_NO_FORMATTING
21 #include "unicode/udat.h"
28 class SimpleDateFormatStaticSets
: public UMemory
31 static SimpleDateFormatStaticSets
*gStaticSets
; // Ptr to all lazily initialized constant
34 SimpleDateFormatStaticSets(UErrorCode
*status
);
35 ~SimpleDateFormatStaticSets();
37 static void initSets(UErrorCode
*status
);
38 static UBool
cleanup();
40 static UnicodeSet
*getIgnorables(UDateFormatField fieldIndex
);
43 UnicodeSet
*fDateIgnorables
;
44 UnicodeSet
*fTimeIgnorables
;
45 UnicodeSet
*fOtherIgnorables
;
51 #endif // #if !UCONFIG_NO_FORMATTING