+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/*
********************************************************************************
-* Copyright (C) 2005-2009, International Business Machines
+* Copyright (C) 2005-2015, International Business Machines
* Corporation and others. All Rights Reserved.
********************************************************************************
*
#include "unicode/utypes.h"
-#ifdef U_WINDOWS
+#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;
* not delete the Calendar object after it is adopted by this call.
*
* @param calendarToAdopt Calendar object to be adopted.
- * @draft ICU 3.6
*/
virtual void adoptCalendar(Calendar* calendarToAdopt);
* calendar for the specified or default locale is used.
*
* @param newCalendar Calendar object to be set.
- *
- * @draft ICU 3.6
*/
virtual void setCalendar(const Calendar& newCalendar);
* no longer owns the TimeZone object and should not delete it after this call.
*
* @param zoneToAdopt the TimeZone to be adopted.
- *
- * @draft ICU 3.6
*/
virtual void adoptTimeZone(TimeZone* zoneToAdopt);
/**
* Sets the time zone for the calendar of this DateFormat object.
* @param zone the new time zone.
- *
- * @draft ICU 3.6
*/
virtual void setTimeZone(const TimeZone& zone);
* <pre>
* . Base* polymorphic_pointer = createPolymorphicObject();
* . if (polymorphic_pointer->getDynamicClassID() ==
- * . erived::getStaticClassID()) ...
+ * . derived::getStaticClassID()) ...
* </pre>
* @return The class ID for all objects of this class.
- * @draft ICU 3.6
*/
U_I18N_API static UClassID U_EXPORT2 getStaticClassID(void);
* @return The class ID for this object. All objects of a
* given class have the same class ID. Objects of
* other classes have different class IDs.
- * @draft ICU 3.6
*/
virtual UClassID getDynamicClassID(void) const;
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 // #ifdef U_WINDOWS
+#endif // U_PLATFORM_USES_ONLY_WIN32_API
#endif // __WINDTFMT