+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/*
********************************************************************************
-* Copyright (C) 2005-2011, International Business Machines
+* Copyright (C) 2005-2015, International Business Machines
* Corporation and others. All Rights Reserved.
********************************************************************************
*
#include "unicode/utypes.h"
-#if U_PLATFORM_HAS_WIN32_API
+#if U_PLATFORM_USES_ONLY_WIN32_API
#if !UCONFIG_NO_FORMATTING
UnicodeString &format(Calendar &cal, UnicodeString &appendTo, FieldPosition &pos) const;
- UnicodeString& format(UDate date, UnicodeString& appendTo) const;
+ using DateFormat::format;
void parse(const UnicodeString& text, Calendar& cal, ParsePosition& pos) const;
* <pre>
* . Base* polymorphic_pointer = createPolymorphicObject();
* . if (polymorphic_pointer->getDynamicClassID() ==
- * . erived::getStaticClassID()) ...
+ * . derived::getStaticClassID()) ...
* </pre>
* @return The class ID for all objects of this class.
*/
UnicodeString *fDateTimeMsg;
DateFormat::EStyle fTimeStyle;
DateFormat::EStyle fDateStyle;
- const Locale *fLocale;
- int32_t fLCID;
+ Locale fLocale;
UnicodeString fZoneID;
TIME_ZONE_INFORMATION *fTZI;
-};
-inline UnicodeString &Win32DateFormat::format(UDate date, UnicodeString& appendTo) const {
- return DateFormat::format(date, appendTo);
-}
+ UnicodeString* fWindowsLocaleName; // Stores the equivalent Windows locale name.
+};
U_NAMESPACE_END
#endif /* #if !UCONFIG_NO_FORMATTING */
-#endif // U_PLATFORM_HAS_WIN32_API
+#endif // U_PLATFORM_USES_ONLY_WIN32_API
#endif // __WINDTFMT