Skip to content

Commit f2469d9

Browse files
committed
documentation of unicode extension support
1 parent 4a4c7ca commit f2469d9

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

i18n/src/main/java/net/time4j/format/expert/ChronoFormatter.java

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,21 @@
135135
* java.util.Date d = f.parse("10/26/2016");
136136
* </pre>
137137
*
138+
* <p><strong>Support for unicode extensions:</strong></p>
139+
*
140+
* <dl>
141+
* <dt><em>nu</em></dt>
142+
* <dd>All number systems listed in the enum {@link net.time4j.format.NumberSystem} support
143+
* the nu-extension. Example: {@code Locale.forLanguageTag(&quot;th-TH-u-nu-thai&quot;)} will use
144+
* Thai numerals in printing and parsing. Normally the number system is determined by the language
145+
* and country but the nu-extension enables to override the default. </dd>
146+
* <dt><em>ca</em></dt>
147+
* <dd>All calendars compatible with the CLDR-pattern support the ca-extension. The support is
148+
* realized by all static factory methods with the name {@code ofGenericXYZ(...)}. Example: The expression
149+
* {@code ofGenericCalendarStyle(DisplayMode.FULL, Locale.forLanguageTag(&quot;ar-SA-u-ca-islamic-umalqura&quot;))}
150+
* will use the calendar of Saudi-Arabia in printing and parsing. </dd>
151+
* </dl>
152+
*
138153
* @param <T> generic type of chronological entity
139154
* @author Meno Hochschild
140155
* @since 3.0
@@ -170,6 +185,23 @@
170185
* java.util.Date d = f.parse(&quot;10/26/2016&quot;);
171186
* </pre>
172187
*
188+
* <p><strong>Unterst&uuml;tzung f&uuml;r Unicode-Erweiterungen:</strong></p>
189+
*
190+
* <dl>
191+
* <dt><em>nu</em></dt>
192+
* <dd>Alle Zahlsysteme, die im Enum {@link net.time4j.format.NumberSystem} definiert sind,
193+
* unterst&uuml;tzen die nu-Erweiterung. Beispiel:
194+
* {@code Locale.forLanguageTag(&quot;th-TH-u-nu-thai&quot;)} wird Thai-Numerale in der Ausgabe und
195+
* Interpretation verwenden. Normalerweise wird das Zahlsystem durch die Sprache und das Land
196+
* bestimmt, aber die nu-Erweiterung kann die Vorgabe &uuml;berschreiben. </dd>
197+
* <dt><em>ca</em></dt>
198+
* <dd>Alle Kalender, die kompatibel mit der CLDR-Formatmusterdefinition sind, unterst&uuml;tzen die
199+
* ca-Erweiterung. Die Unterst&uuml;tzung erfolgt mit Hilfe von statischen Fabrikmethoden, deren Namen
200+
* mit {@code ofGenericXYZ(...)} beginnen. Beispiel: Der Ausdruck
201+
* {@code ofGenericCalendarStyle(DisplayMode.FULL, Locale.forLanguageTag(&quot;ar-SA-u-ca-islamic-umalqura&quot;))}
202+
* wird den Kalender von Saudi-Arabien in der Ausgabe und Interpretation verwenden. </dd>
203+
* </dl>
204+
*
173205
* @param <T> generic type of chronological entity
174206
* @author Meno Hochschild
175207
* @since 3.0

0 commit comments

Comments
 (0)