mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 17:24:01 +00:00
ICU-2087 draft 2.0 -> stable rbnf
X-SVN-Rev: 10380
This commit is contained in:
parent
2e8a5383ec
commit
622be9eb16
2 changed files with 15 additions and 15 deletions
|
@ -493,7 +493,7 @@ class Collator;
|
|||
* @author Richard Gillam
|
||||
* @see NumberFormat
|
||||
* @see DecimalFormat
|
||||
* @draft ICU 2.0
|
||||
* @stable
|
||||
*/
|
||||
class U_I18N_API RuleBasedNumberFormat : public NumberFormat {
|
||||
public:
|
||||
|
@ -515,7 +515,7 @@ public:
|
|||
* lenient parsing.
|
||||
* @param perror The parse error if an error was encountered.
|
||||
* @param status The status indicating whether the constructor succeeded.
|
||||
* @draft ICU 2.0
|
||||
* @stable
|
||||
*/
|
||||
RuleBasedNumberFormat(const UnicodeString& rules, const Locale& locale,
|
||||
UParseError& perror, UErrorCode& status);
|
||||
|
@ -531,7 +531,7 @@ public:
|
|||
* and URBNF_DURATION, which formats a duration in seconds as hours, minutes, and seconds.
|
||||
* @param locale The locale for the formatter.
|
||||
* @param status The status indicating whether the constructor succeeded.
|
||||
* @draft ICU 2.0
|
||||
* @stable
|
||||
*/
|
||||
RuleBasedNumberFormat(URBNFRuleSetTag tag, const Locale& locale, UErrorCode& status);
|
||||
|
||||
|
@ -578,7 +578,7 @@ public:
|
|||
/**
|
||||
* return the rules that were provided to the RuleBasedNumberFormat.
|
||||
* @return the result String that was passed in
|
||||
* @draft ICU 2.0
|
||||
* @stable
|
||||
*/
|
||||
virtual UnicodeString getRules() const;
|
||||
|
||||
|
@ -587,14 +587,14 @@ public:
|
|||
* the function returns null.
|
||||
* @param index the index of the ruleset
|
||||
* @return the name of the index'th public ruleSet.
|
||||
* @draft ICU 2.0
|
||||
* @stable
|
||||
*/
|
||||
virtual UnicodeString getRuleSetName(int32_t index) const;
|
||||
|
||||
/**
|
||||
* Return the number of public rule set names.
|
||||
* @return the number of public rule set names.
|
||||
* @draft ICU 2.0
|
||||
* @stable
|
||||
*/
|
||||
virtual int32_t getNumberOfRuleSetNames() const;
|
||||
|
||||
|
@ -604,7 +604,7 @@ public:
|
|||
* @param toAppendTo the string that will hold the (appended) result
|
||||
* @param pos the fieldposition
|
||||
* @return A textual representation of the number.
|
||||
* @draft ICU 2.0
|
||||
* @stable
|
||||
*/
|
||||
virtual UnicodeString& format(int32_t number,
|
||||
UnicodeString& toAppendTo,
|
||||
|
@ -627,7 +627,7 @@ public:
|
|||
* @param toAppendTo the string that will hold the (appended) result
|
||||
* @param pos the fieldposition
|
||||
* @return A textual representation of the number.
|
||||
* @draft ICU 2.0
|
||||
* @stable
|
||||
*/
|
||||
virtual UnicodeString& format(double number,
|
||||
UnicodeString& toAppendTo,
|
||||
|
@ -642,7 +642,7 @@ public:
|
|||
* @param pos the fieldposition
|
||||
* @param status the status
|
||||
* @return A textual representation of the number.
|
||||
* @draft ICU 2.0
|
||||
* @stable
|
||||
*/
|
||||
virtual UnicodeString& format(int32_t number,
|
||||
const UnicodeString& ruleSetName,
|
||||
|
@ -674,7 +674,7 @@ public:
|
|||
* @param pos the fieldposition
|
||||
* @param status the status
|
||||
* @return A textual representation of the number.
|
||||
* @draft ICU 2.0
|
||||
* @stable
|
||||
*/
|
||||
virtual UnicodeString& format(double number,
|
||||
const UnicodeString& ruleSetName,
|
||||
|
@ -689,7 +689,7 @@ public:
|
|||
* @param pos the fieldposition
|
||||
* @param status the status
|
||||
* @return A textual representation of the number.
|
||||
* @draft ICU 2.0
|
||||
* @stable
|
||||
*/
|
||||
virtual UnicodeString& format(const Formattable& obj,
|
||||
UnicodeString& toAppendTo,
|
||||
|
@ -739,7 +739,7 @@ public:
|
|||
* in "text" to examine. On exit, has been updated to contain the position
|
||||
* of the first character in "text" that wasn't consumed by the parse.
|
||||
* @see #setLenientParseMode
|
||||
* @draft ICU 2.0
|
||||
* @stable
|
||||
*/
|
||||
virtual void parse(const UnicodeString& text,
|
||||
Formattable& result,
|
||||
|
@ -790,7 +790,7 @@ public:
|
|||
*
|
||||
* @param enabled If true, turns lenient-parse mode on; if false, turns it off.
|
||||
* @see RuleBasedCollator
|
||||
* @draft ICU 2.0
|
||||
* @stable
|
||||
*/
|
||||
virtual void setLenient(UBool enabled);
|
||||
|
||||
|
@ -799,7 +799,7 @@ public:
|
|||
* by default.
|
||||
* @return true if lenient-parse mode is turned on.
|
||||
* @see #setLenientParseMode
|
||||
* @draft ICU 2.0
|
||||
* @stable
|
||||
*/
|
||||
virtual inline UBool isLenient(void) const;
|
||||
|
||||
|
|
|
@ -168,7 +168,7 @@ typedef enum UNumberFormatPadPosition {
|
|||
* @return A pointer to a UNumberFormat to use for formatting numbers, or 0 if
|
||||
* an error occurred.
|
||||
* @see unum_open
|
||||
* @draft ICU 2.0
|
||||
* @stable
|
||||
*/
|
||||
U_CAPI UNumberFormat* U_EXPORT2
|
||||
unum_open( UNumberFormatStyle style,
|
||||
|
|
Loading…
Add table
Reference in a new issue