ICU-20142 Document the skeleton for MessageFormat number arguments (#121)
This commit is contained in:
parent
5e5b4b3bab
commit
531bc76ed5
@ -124,7 +124,7 @@ class NumberFormat;
|
||||
* argNumber = '0' | ('1'..'9' ('0'..'9')*)
|
||||
*
|
||||
* argType = "number" | "date" | "time" | "spellout" | "ordinal" | "duration"
|
||||
* argStyle = "short" | "medium" | "long" | "full" | "integer" | "currency" | "percent" | argStyleText
|
||||
* argStyle = "short" | "medium" | "long" | "full" | "integer" | "currency" | "percent" | argStyleText | "::" argSkeletonText
|
||||
* </pre>
|
||||
*
|
||||
* <ul>
|
||||
@ -166,7 +166,7 @@ class NumberFormat;
|
||||
* <td colspan=2><i>(none)</i>
|
||||
* <td><code>null</code>
|
||||
* <tr>
|
||||
* <td rowspan=5><code>number</code>
|
||||
* <td rowspan=6><code>number</code>
|
||||
* <td><i>(none)</i>
|
||||
* <td><code>NumberFormat.createInstance(getLocale(), status)</code>
|
||||
* <tr>
|
||||
@ -182,6 +182,9 @@ class NumberFormat;
|
||||
* <td><i>argStyleText</i>
|
||||
* <td><code>new DecimalFormat(argStyleText, new DecimalFormatSymbols(getLocale(), status), status)</code>
|
||||
* <tr>
|
||||
* <td><i>argSkeletonText</i>
|
||||
* <td><code>NumberFormatter::forSkeleton(argSkeletonText, status).locale(getLocale()).toFormat(status)</code>
|
||||
* <tr>
|
||||
* <td rowspan=6><code>date</code>
|
||||
* <td><i>(none)</i>
|
||||
* <td><code>DateFormat.createDateInstance(kDefault, getLocale(), status)</code>
|
||||
|
@ -123,7 +123,7 @@ import com.ibm.icu.util.ULocale.Category;
|
||||
* argNumber = '0' | ('1'..'9' ('0'..'9')*)
|
||||
*
|
||||
* argType = "number" | "date" | "time" | "spellout" | "ordinal" | "duration"
|
||||
* argStyle = "short" | "medium" | "long" | "full" | "integer" | "currency" | "percent" | argStyleText
|
||||
* argStyle = "short" | "medium" | "long" | "full" | "integer" | "currency" | "percent" | argStyleText | "::" argSkeletonText
|
||||
* </pre></blockquote>
|
||||
*
|
||||
* <ul>
|
||||
@ -164,7 +164,7 @@ import com.ibm.icu.util.ULocale.Category;
|
||||
* <td colspan=2><i>(none)</i>
|
||||
* <td><code>null</code>
|
||||
* <tr>
|
||||
* <td rowspan=5><code>number</code>
|
||||
* <td rowspan=6><code>number</code>
|
||||
* <td><i>(none)</i>
|
||||
* <td><code>NumberFormat.getInstance(getLocale())</code>
|
||||
* <tr>
|
||||
@ -180,6 +180,9 @@ import com.ibm.icu.util.ULocale.Category;
|
||||
* <td><i>argStyleText</i>
|
||||
* <td><code>new DecimalFormat(argStyleText, new DecimalFormatSymbols(getLocale()))</code>
|
||||
* <tr>
|
||||
* <td><i>argSkeletonText</i>
|
||||
* <td><code>NumberFormatter.forSkeleton(argSkeletonText).locale(getLocale()).toFormat()</code>
|
||||
* <tr>
|
||||
* <td rowspan=6><code>date</code>
|
||||
* <td><i>(none)</i>
|
||||
* <td><code>DateFormat.getDateInstance(DateFormat.DEFAULT, getLocale())</code>
|
||||
|
Loading…
Reference in New Issue
Block a user