Index: source/i18n/unicode/compactdecimalformat.h |
diff --git a/source/i18n/unicode/compactdecimalformat.h b/source/i18n/unicode/compactdecimalformat.h |
index bd8fdba8e8f23cbc9e7aa91ab2f75b9cebcfeb40..118312c22a23d9a27ec6a3a4aa1421ec1014788b 100644 |
--- a/source/i18n/unicode/compactdecimalformat.h |
+++ b/source/i18n/unicode/compactdecimalformat.h |
@@ -1,6 +1,6 @@ |
/* |
******************************************************************************** |
-* Copyright (C) 2012-2014, International Business Machines |
+* Copyright (C) 2012-2015, International Business Machines |
* Corporation and others. All Rights Reserved. |
******************************************************************************** |
* |
@@ -123,6 +123,23 @@ public: |
/** |
* Format a double or long number using base-10 representation. |
+ * |
+ * @param number The value to be formatted. |
+ * @param appendTo Output parameter to receive result. |
+ * Result is appended to existing contents. |
+ * @param pos On input: an alignment field, if desired. |
+ * On output: the offsets of the alignment field. |
+ * @param status |
+ * @return Reference to 'appendTo' parameter. |
+ * @internal |
+ */ |
+ virtual UnicodeString& format(double number, |
+ UnicodeString& appendTo, |
+ FieldPosition& pos, |
+ UErrorCode &status) const; |
+ |
+ /** |
+ * Format a double or long number using base-10 representation. |
* Currently sets status to U_UNSUPPORTED_ERROR. |
* |
* @param number The value to be formatted. |
@@ -141,6 +158,56 @@ public: |
UErrorCode& status) const; |
/** |
+ * Format a long number using base-10 representation. |
+ * |
+ * @param number The value to be formatted. |
+ * @param appendTo Output parameter to receive result. |
+ * Result is appended to existing contents. |
+ * @param pos On input: an alignment field, if desired. |
+ * On output: the offsets of the alignment field. |
+ * @return Reference to 'appendTo' parameter. |
+ * @draft ICU 56 |
+ */ |
+ virtual UnicodeString& format(int32_t number, |
+ UnicodeString& appendTo, |
+ FieldPosition& pos) const; |
+ |
+ /** |
+ * Format a long number using base-10 representation. |
+ * |
+ * @param number The value to be formatted. |
+ * @param appendTo Output parameter to receive result. |
+ * Result is appended to existing contents. |
+ * @param pos On input: an alignment field, if desired. |
+ * On output: the offsets of the alignment field. |
+ * @return Reference to 'appendTo' parameter. |
+ * @internal |
+ */ |
+ virtual UnicodeString& format(int32_t number, |
+ UnicodeString& appendTo, |
+ FieldPosition& pos, |
+ UErrorCode &status) const; |
+ |
+ /** |
+ * Format a long number using base-10 representation. |
+ * Currently sets status to U_UNSUPPORTED_ERROR |
+ * |
+ * @param number The value to be formatted. |
+ * @param appendTo Output parameter to receive result. |
+ * Result is appended to existing contents. |
+ * @param posIter On return, can be used to iterate over positions |
+ * of fields generated by this format call. |
+ * Can be NULL. |
+ * @param status Output param filled with success/failure status. |
+ * @return Reference to 'appendTo' parameter. |
+ * @internal |
+ */ |
+ virtual UnicodeString& format(int32_t number, |
+ UnicodeString& appendTo, |
+ FieldPositionIterator* posIter, |
+ UErrorCode& status) const; |
+ |
+ /** |
* Format an int64 number using base-10 representation. |
* |
* @param number The value to be formatted. |
@@ -157,6 +224,22 @@ public: |
/** |
* Format an int64 number using base-10 representation. |
+ * |
+ * @param number The value to be formatted. |
+ * @param appendTo Output parameter to receive result. |
+ * Result is appended to existing contents. |
+ * @param pos On input: an alignment field, if desired. |
+ * On output: the offsets of the alignment field. |
+ * @return Reference to 'appendTo' parameter. |
+ * @internal |
+ */ |
+ virtual UnicodeString& format(int64_t number, |
+ UnicodeString& appendTo, |
+ FieldPosition& pos, |
+ UErrorCode &status) const; |
+ |
+ /** |
+ * Format an int64 number using base-10 representation. |
* Currently sets status to U_UNSUPPORTED_ERROR |
* |
* @param number The value to be formatted. |