| OLD | NEW |
| 1 /* | 1 /* |
| 2 ******************************************************************************** | 2 ******************************************************************************** |
| 3 * Copyright (C) 1997-2014, International Business Machines Corporation and other
s. | 3 * Copyright (C) 1997-2015, International Business Machines Corporation and other
s. |
| 4 * All Rights Reserved. | 4 * All Rights Reserved. |
| 5 ******************************************************************************** | 5 ******************************************************************************** |
| 6 * | 6 * |
| 7 * File NUMFMT.H | 7 * File NUMFMT.H |
| 8 * | 8 * |
| 9 * Modification History: | 9 * Modification History: |
| 10 * | 10 * |
| 11 * Date Name Description | 11 * Date Name Description |
| 12 * 02/19/97 aliu Converted from java. | 12 * 02/19/97 aliu Converted from java. |
| 13 * 03/18/97 clhuang Updated per C++ implementation. | 13 * 03/18/97 clhuang Updated per C++ implementation. |
| (...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 942 | 942 |
| 943 /** | 943 /** |
| 944 * Gets the currency used to display currency | 944 * Gets the currency used to display currency |
| 945 * amounts. This may be an empty string for some subclasses. | 945 * amounts. This may be an empty string for some subclasses. |
| 946 * @return a 3-letter null-terminated ISO code indicating | 946 * @return a 3-letter null-terminated ISO code indicating |
| 947 * the currency in use, or a pointer to the empty string. | 947 * the currency in use, or a pointer to the empty string. |
| 948 * @stable ICU 2.6 | 948 * @stable ICU 2.6 |
| 949 */ | 949 */ |
| 950 const UChar* getCurrency() const; | 950 const UChar* getCurrency() const; |
| 951 | 951 |
| 952 /* Cannot use #ifndef U_HIDE_DRAFT_API for the following draft method since
it is virtual */ | |
| 953 /** | 952 /** |
| 954 * Set a particular UDisplayContext value in the formatter, such as | 953 * Set a particular UDisplayContext value in the formatter, such as |
| 955 * UDISPCTX_CAPITALIZATION_FOR_STANDALONE. | 954 * UDISPCTX_CAPITALIZATION_FOR_STANDALONE. |
| 956 * @param value The UDisplayContext value to set. | 955 * @param value The UDisplayContext value to set. |
| 957 * @param status Input/output status. If at entry this indicates a failure | 956 * @param status Input/output status. If at entry this indicates a failure |
| 958 * status, the function will do nothing; otherwise this will b
e | 957 * status, the function will do nothing; otherwise this will b
e |
| 959 * updated with any new status from the function. | 958 * updated with any new status from the function. |
| 960 * @draft ICU 53 | 959 * @stable ICU 53 |
| 961 */ | 960 */ |
| 962 virtual void setContext(UDisplayContext value, UErrorCode& status); | 961 virtual void setContext(UDisplayContext value, UErrorCode& status); |
| 963 | 962 |
| 964 /* Cannot use #ifndef U_HIDE_DRAFT_API for the following draft method since
it is virtual */ | |
| 965 /** | 963 /** |
| 966 * Get the formatter's UDisplayContext value for the specified UDisplayConte
xtType, | 964 * Get the formatter's UDisplayContext value for the specified UDisplayConte
xtType, |
| 967 * such as UDISPCTX_TYPE_CAPITALIZATION. | 965 * such as UDISPCTX_TYPE_CAPITALIZATION. |
| 968 * @param type The UDisplayContextType whose value to return | 966 * @param type The UDisplayContextType whose value to return |
| 969 * @param status Input/output status. If at entry this indicates a failure | 967 * @param status Input/output status. If at entry this indicates a failure |
| 970 * status, the function will do nothing; otherwise this will b
e | 968 * status, the function will do nothing; otherwise this will b
e |
| 971 * updated with any new status from the function. | 969 * updated with any new status from the function. |
| 972 * @return The UDisplayContextValue for the specified type. | 970 * @return The UDisplayContextValue for the specified type. |
| 973 * @draft ICU 53 | 971 * @stable ICU 53 |
| 974 */ | 972 */ |
| 975 virtual UDisplayContext getContext(UDisplayContextType type, UErrorCode& sta
tus) const; | 973 virtual UDisplayContext getContext(UDisplayContextType type, UErrorCode& sta
tus) const; |
| 976 | 974 |
| 977 public: | 975 public: |
| 978 | 976 |
| 979 /** | 977 /** |
| 980 * Return the class ID for this class. This is useful for | 978 * Return the class ID for this class. This is useful for |
| 981 * comparing to a return value from getDynamicClassID(). Note that, | 979 * comparing to a return value from getDynamicClassID(). Note that, |
| 982 * because NumberFormat is an abstract base class, no fully constructed obje
ct | 980 * because NumberFormat is an abstract base class, no fully constructed obje
ct |
| 983 * will have the class ID returned by NumberFormat::getStaticClassID(). | 981 * will have the class ID returned by NumberFormat::getStaticClassID(). |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1178 { | 1176 { |
| 1179 return fLenient; | 1177 return fLenient; |
| 1180 } | 1178 } |
| 1181 | 1179 |
| 1182 U_NAMESPACE_END | 1180 U_NAMESPACE_END |
| 1183 | 1181 |
| 1184 #endif /* #if !UCONFIG_NO_FORMATTING */ | 1182 #endif /* #if !UCONFIG_NO_FORMATTING */ |
| 1185 | 1183 |
| 1186 #endif // _NUMFMT | 1184 #endif // _NUMFMT |
| 1187 //eof | 1185 //eof |
| OLD | NEW |