1*0e209d39SAndroid Build Coastguard Worker // © 2016 and later: Unicode, Inc. and others. 2*0e209d39SAndroid Build Coastguard Worker // License & terms of use: http://www.unicode.org/copyright.html 3*0e209d39SAndroid Build Coastguard Worker /* 4*0e209d39SAndroid Build Coastguard Worker ******************************************************************************* 5*0e209d39SAndroid Build Coastguard Worker * Copyright (C) 2009-2013, International Business Machines Corporation and * 6*0e209d39SAndroid Build Coastguard Worker * others. All Rights Reserved. * 7*0e209d39SAndroid Build Coastguard Worker ******************************************************************************* 8*0e209d39SAndroid Build Coastguard Worker * 9*0e209d39SAndroid Build Coastguard Worker * This file contains declarations for the class SimpleDateFormatStaticSets 10*0e209d39SAndroid Build Coastguard Worker * 11*0e209d39SAndroid Build Coastguard Worker * SimpleDateFormatStaticSets holds the UnicodeSets that are needed for lenient 12*0e209d39SAndroid Build Coastguard Worker * parsing of literal characters in date/time strings. 13*0e209d39SAndroid Build Coastguard Worker ******************************************************************************** 14*0e209d39SAndroid Build Coastguard Worker */ 15*0e209d39SAndroid Build Coastguard Worker 16*0e209d39SAndroid Build Coastguard Worker #ifndef SMPDTFST_H 17*0e209d39SAndroid Build Coastguard Worker #define SMPDTFST_H 18*0e209d39SAndroid Build Coastguard Worker 19*0e209d39SAndroid Build Coastguard Worker #include "unicode/uobject.h" 20*0e209d39SAndroid Build Coastguard Worker #include "unicode/utypes.h" 21*0e209d39SAndroid Build Coastguard Worker 22*0e209d39SAndroid Build Coastguard Worker #if !UCONFIG_NO_FORMATTING 23*0e209d39SAndroid Build Coastguard Worker 24*0e209d39SAndroid Build Coastguard Worker #include "unicode/udat.h" 25*0e209d39SAndroid Build Coastguard Worker 26*0e209d39SAndroid Build Coastguard Worker U_NAMESPACE_BEGIN 27*0e209d39SAndroid Build Coastguard Worker 28*0e209d39SAndroid Build Coastguard Worker class UnicodeSet; 29*0e209d39SAndroid Build Coastguard Worker 30*0e209d39SAndroid Build Coastguard Worker 31*0e209d39SAndroid Build Coastguard Worker class SimpleDateFormatStaticSets : public UMemory 32*0e209d39SAndroid Build Coastguard Worker { 33*0e209d39SAndroid Build Coastguard Worker public: 34*0e209d39SAndroid Build Coastguard Worker SimpleDateFormatStaticSets(UErrorCode &status); 35*0e209d39SAndroid Build Coastguard Worker ~SimpleDateFormatStaticSets(); 36*0e209d39SAndroid Build Coastguard Worker 37*0e209d39SAndroid Build Coastguard Worker static void initSets(UErrorCode *status); 38*0e209d39SAndroid Build Coastguard Worker static UBool cleanup(); 39*0e209d39SAndroid Build Coastguard Worker 40*0e209d39SAndroid Build Coastguard Worker static UnicodeSet *getIgnorables(UDateFormatField fieldIndex); 41*0e209d39SAndroid Build Coastguard Worker 42*0e209d39SAndroid Build Coastguard Worker private: 43*0e209d39SAndroid Build Coastguard Worker UnicodeSet *fDateIgnorables; 44*0e209d39SAndroid Build Coastguard Worker UnicodeSet *fTimeIgnorables; 45*0e209d39SAndroid Build Coastguard Worker UnicodeSet *fOtherIgnorables; 46*0e209d39SAndroid Build Coastguard Worker }; 47*0e209d39SAndroid Build Coastguard Worker 48*0e209d39SAndroid Build Coastguard Worker 49*0e209d39SAndroid Build Coastguard Worker U_NAMESPACE_END 50*0e209d39SAndroid Build Coastguard Worker 51*0e209d39SAndroid Build Coastguard Worker #endif // #if !UCONFIG_NO_FORMATTING 52*0e209d39SAndroid Build Coastguard Worker #endif // SMPDTFST_H 53