smpdtfst.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. #ifndef SMPDTFST_H
  16. #define SMPDTFST_H
  17. #include "unicode/uobject.h"
  18. #include "unicode/utypes.h"
  19. #if !UCONFIG_NO_FORMATTING
  20. #include "unicode/udat.h"
  21. U_NAMESPACE_BEGIN
  22. class UnicodeSet;
  23. class SimpleDateFormatStaticSets : public UMemory
  24. {
  25. public:
  26. SimpleDateFormatStaticSets(UErrorCode &status);
  27. ~SimpleDateFormatStaticSets();
  28. static void initSets(UErrorCode *status);
  29. static UBool cleanup();
  30. static UnicodeSet *getIgnorables(UDateFormatField fieldIndex);
  31. private:
  32. UnicodeSet *fDateIgnorables;
  33. UnicodeSet *fTimeIgnorables;
  34. UnicodeSet *fOtherIgnorables;
  35. };
  36. U_NAMESPACE_END
  37. #endif // #if !UCONFIG_NO_FORMATTING
  38. #endif // SMPDTFST_H