shareddateformatsymbols.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // © 2016 and later: Unicode, Inc. and others.
  2. // License & terms of use: http://www.unicode.org/copyright.html
  3. /*
  4. ******************************************************************************
  5. * Copyright (C) 2014, International Business Machines
  6. * Corporation and others. All Rights Reserved.
  7. ******************************************************************************
  8. * shareddateformatsymbols.h
  9. */
  10. #ifndef __SHARED_DATEFORMATSYMBOLS_H__
  11. #define __SHARED_DATEFORMATSYMBOLS_H__
  12. #include "unicode/utypes.h"
  13. #if !UCONFIG_NO_FORMATTING
  14. #include "sharedobject.h"
  15. #include "unicode/dtfmtsym.h"
  16. U_NAMESPACE_BEGIN
  17. class U_I18N_API SharedDateFormatSymbols : public SharedObject {
  18. public:
  19. SharedDateFormatSymbols(
  20. const Locale &loc, const char *type, UErrorCode &status)
  21. : dfs(loc, type, status) { }
  22. virtual ~SharedDateFormatSymbols();
  23. const DateFormatSymbols &get() const { return dfs; }
  24. private:
  25. DateFormatSymbols dfs;
  26. SharedDateFormatSymbols(const SharedDateFormatSymbols &);
  27. SharedDateFormatSymbols &operator=(const SharedDateFormatSymbols &);
  28. };
  29. U_NAMESPACE_END
  30. #endif /* !UCONFIG_NO_FORMATTING */
  31. #endif