annotate modules/javafx.web/src/main/native/Source/ThirdParty/icu/source/i18n/smpdtfst.h @ 10550:fee4ef5c87df

8178360: Build and integrate ICU from source Reviewed-by: kcr, arajkumar
author ghb
date Tue, 04 Jul 2017 09:09:49 +0530
parents
children 20a8447c71c6
rev   line source
ghb@10550 1 /*
ghb@10550 2 *******************************************************************************
ghb@10550 3 * Copyright (C) 2009-2011, International Business Machines Corporation and *
ghb@10550 4 * others. All Rights Reserved. *
ghb@10550 5 *******************************************************************************
ghb@10550 6 *
ghb@10550 7 * This file contains declarations for the class SimpleDateFormatStaticSets
ghb@10550 8 *
ghb@10550 9 * SimpleDateFormatStaticSets holds the UnicodeSets that are needed for lenient
ghb@10550 10 * parsing of literal characters in date/time strings.
ghb@10550 11 ********************************************************************************
ghb@10550 12 */
ghb@10550 13
ghb@10550 14 #ifndef SMPDTFST_H
ghb@10550 15 #define SMPDTFST_H
ghb@10550 16
ghb@10550 17 #include "unicode/utypes.h"
ghb@10550 18
ghb@10550 19 #if !UCONFIG_NO_FORMATTING
ghb@10550 20
ghb@10550 21 #include "unicode/udat.h"
ghb@10550 22
ghb@10550 23 U_NAMESPACE_BEGIN
ghb@10550 24
ghb@10550 25 class UnicodeSet;
ghb@10550 26
ghb@10550 27
ghb@10550 28 class SimpleDateFormatStaticSets : public UMemory
ghb@10550 29 {
ghb@10550 30 public:
ghb@10550 31 static SimpleDateFormatStaticSets *gStaticSets; // Ptr to all lazily initialized constant
ghb@10550 32 // shared sets.
ghb@10550 33
ghb@10550 34 SimpleDateFormatStaticSets(UErrorCode *status);
ghb@10550 35 ~SimpleDateFormatStaticSets();
ghb@10550 36
ghb@10550 37 static void initSets(UErrorCode *status);
ghb@10550 38 static UBool cleanup();
ghb@10550 39
ghb@10550 40 static UnicodeSet *getIgnorables(UDateFormatField fieldIndex);
ghb@10550 41
ghb@10550 42 private:
ghb@10550 43 UnicodeSet *fDateIgnorables;
ghb@10550 44 UnicodeSet *fTimeIgnorables;
ghb@10550 45 UnicodeSet *fOtherIgnorables;
ghb@10550 46 };
ghb@10550 47
ghb@10550 48
ghb@10550 49 U_NAMESPACE_END
ghb@10550 50
ghb@10550 51 #endif // #if !UCONFIG_NO_FORMATTING
ghb@10550 52 #endif // SMPDTFST_H