/*
********************************************************************************
-* Copyright (C) 2005-2006, 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
#include "unicode/format.h"
#include "unicode/datefmt.h"
* @param pos On input: an alignment field, if desired.
* On output: the offsets of the alignment field.
* @return Reference to 'appendTo' parameter.
- * @draft ICU 3.6
*/
virtual UnicodeString& format(double number,
UnicodeString& appendTo,
* @param pos On input: an alignment field, if desired.
* On output: the offsets of the alignment field.
* @return Reference to 'appendTo' parameter.
- * @draft ICU 3.6
*/
virtual UnicodeString& format(int32_t number,
UnicodeString& appendTo,
* @param pos On input: an alignment field, if desired.
* On output: the offsets of the alignment field.
* @return Reference to 'appendTo' parameter.
- * @draft ICU 3.6
*/
virtual UnicodeString& format(int64_t number,
UnicodeString& appendTo,
FieldPosition& pos) const;
+ using NumberFormat::format;
+
// Use the default behavior for the following.
// virtual UnicodeString &format(double number, UnicodeString &appendTo) const;
// virtual UnicodeString &format(int32_t number, UnicodeString &appendTo) const;
* the new value.
* @param newValue the new value to be set.
* @see getMaximumFractionDigits
- * @draft ICU 3.6
*/
virtual void setMaximumFractionDigits(int32_t newValue);
* the new value
* @param newValue the new value to be set.
* @see getMinimumFractionDigits
- * @draft ICU 3.6
*/
virtual void setMinimumFractionDigits(int32_t newValue);
* . erived::getStaticClassID()) ...
* </pre>
* @return The class ID for all objects of this class.
- * @stable ICU 2.0
*/
- static UClassID U_EXPORT2 getStaticClassID(void);
+ U_I18N_API static UClassID U_EXPORT2 getStaticClassID(void);
/**
* Returns a unique class ID POLYMORPHICALLY. Pure virtual override. This
* @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.
- * @stable ICU 2.0
*/
virtual UClassID getDynamicClassID(void) const;
private:
- UnicodeString &format(int32_t numDigits, UnicodeString &appendTo, wchar_t *format, ...) const;
+ UnicodeString &format(int32_t numDigits, UnicodeString &appendTo, const wchar_t *format, ...) const;
UBool fCurrency;
+ Locale fLocale;
int32_t fLCID;
FormatInfo *fFormatInfo;
UBool fFractionDigitsSet;
#endif /* #if !UCONFIG_NO_FORMATTING */
-#endif // #ifdef U_WINDOWS
+#endif // U_PLATFORM_USES_ONLY_WIN32_API
#endif // __WINNMFMT