mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8315064: j.text.ChoiceFormat provides no specification on quoting behavior
Reviewed-by: naoto
This commit is contained in:
parent
1740950036
commit
684b91efbb
1 changed files with 6 additions and 0 deletions
|
@ -187,6 +187,12 @@ import java.util.Arrays;
|
|||
*
|
||||
* <i>Note:The relation ≤ is not equivalent to <=</i>
|
||||
*
|
||||
* <p>If a <i>Relation</i> symbol is to be used within a <i>Format</i> pattern,
|
||||
* it must be single quoted. For example,
|
||||
* {@code new ChoiceFormat("1# '#'1 ").format(1)} returns {@code " #1 "}.
|
||||
* Use two single quotes in a row to produce a literal single quote. For example,
|
||||
* {@code new ChoiceFormat("1# ''one'' ").format(1)} returns {@code " 'one' "}.
|
||||
*
|
||||
* <p>Below is an example of constructing a ChoiceFormat with a pattern:
|
||||
* <blockquote>
|
||||
* {@snippet lang=java :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue