mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-15 01:42:37 +00:00
ICU-7305 Updating API draft status. Refresh the API change report with the updates.
X-SVN-Rev: 27327
This commit is contained in:
parent
c82f884457
commit
07c1c262c7
31 changed files with 559 additions and 388 deletions
|
@ -2,11 +2,11 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>ICU4J API Comparison: ICU4J 4.2.1 with ICU4J 4.3.3</title>
|
||||
<!-- Copyright 2009, IBM, All Rights Reserved. -->
|
||||
<title>ICU4J API Comparison: ICU4J 4.2.1 with ICU4J 4.3.4</title>
|
||||
<!-- Copyright 2010, IBM, All Rights Reserved. -->
|
||||
</head>
|
||||
<body>
|
||||
<h1>ICU4J API Comparison: ICU4J 4.2.1 with ICU4J 4.3.3</h1>
|
||||
<h1>ICU4J API Comparison: ICU4J 4.2.1 with ICU4J 4.3.4</h1>
|
||||
|
||||
<hr/>
|
||||
<h2>Removed from ICU4J 4.2.1</h2>
|
||||
|
@ -36,6 +36,10 @@ DateTimePatternGenerator
|
|||
<li>(stable) public java.lang.Object <i>cloneAsThawed</i>()</li>
|
||||
<li>(stable) public java.lang.Object <i>freeze</i>()</li>
|
||||
</ul>
|
||||
DecimalFormatSymbols
|
||||
<ul>
|
||||
<li>(draft) public static final int CURRENCT_SPC_SURROUNDING_MATCH</li>
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
<h3>Package com.ibm.icu.util</h3>
|
||||
|
@ -83,11 +87,11 @@ VersionInfo
|
|||
|
||||
|
||||
<hr/>
|
||||
<h2>Withdrawn, Deprecated, or Obsoleted in ICU4J 4.3.3</h2>
|
||||
<h2>Withdrawn, Deprecated, or Obsoleted in ICU4J 4.3.4</h2>
|
||||
<p>(no API obsoleted)</p>
|
||||
|
||||
<hr/>
|
||||
<h2>Changed in ICU4J 4.3.3 (old, new)</h2>
|
||||
<h2>Changed in ICU4J 4.3.4 (old, new)</h2>
|
||||
|
||||
<h3>Package com.ibm.icu.charset</h3>
|
||||
<ul>
|
||||
|
@ -126,9 +130,9 @@ UTF16.StringComparator
|
|||
UnicodeSet
|
||||
<ul>
|
||||
<li> (stable) public void <i>addAll</i>(java.util.Collection)</br>
|
||||
(draft) public com.ibm.icu.text.UnicodeSet <i>addAll</i>(int, int)</li>
|
||||
(stable) public com.ibm.icu.text.UnicodeSet <i>addAll</i>(int, int)</li>
|
||||
<li> (stable) public void <i>addAllTo</i>(java.util.Collection)</br>
|
||||
(draft) public static java.lang.Object[] <i>addAllTo</i>(java.lang.Iterable, T[])</li>
|
||||
(stable) public static java.lang.Object[] <i>addAllTo</i>(java.lang.Iterable, T[])</li>
|
||||
<li> (stable) public java.lang.Object <i>cloneAsThawed</i>()</br>
|
||||
(stable) public com.ibm.icu.text.UnicodeSet <i>cloneAsThawed</i>()</li>
|
||||
<li> (stable) public java.lang.Object <i>freeze</i>()</br>
|
||||
|
@ -157,11 +161,110 @@ VersionInfo
|
|||
|
||||
|
||||
<hr/>
|
||||
<h2>Promoted to stable in ICU4J 4.3.3</h2>
|
||||
<p>(no API promoted)</p>
|
||||
<h2>Promoted to stable in ICU4J 4.3.4</h2>
|
||||
|
||||
<h3>Package com.ibm.icu.charset</h3>
|
||||
<ul>
|
||||
<li>(stable) public final class <i>CharsetSelector</i></li>
|
||||
</ul>
|
||||
|
||||
<h3>Package com.ibm.icu.text</h3>
|
||||
<ul>
|
||||
<li>(stable) public class <i>CurrencyPluralInfo</i></li>
|
||||
Collator
|
||||
<ul>
|
||||
<li>(stable) public static final java.lang.String[] <i>getKeywordValuesForLocale</i>(java.lang.String, ULocale, boolean)</li>
|
||||
</ul>
|
||||
DecimalFormat
|
||||
<ul>
|
||||
<li>(stable) public <i>DecimalFormat</i>(java.lang.String, DecimalFormatSymbols, CurrencyPluralInfo, int)</li>
|
||||
<li>(stable) public CurrencyPluralInfo <i>getCurrencyPluralInfo</i>()</li>
|
||||
<li>(stable) public java.math.MathContext <i>getMathContext</i>()</li>
|
||||
<li>(stable) public MathContext <i>getMathContextICU</i>()</li>
|
||||
<li>(stable) public void <i>setCurrencyPluralInfo</i>(CurrencyPluralInfo)</li>
|
||||
<li>(stable) public void <i>setMathContext</i>(java.math.MathContext)</li>
|
||||
<li>(stable) public void <i>setMathContextICU</i>(MathContext)</li>
|
||||
</ul>
|
||||
NumberFormat
|
||||
<ul>
|
||||
<li>(stable) public static final int CURRENCYSTYLE</li>
|
||||
<li>(stable) public static final int INTEGERSTYLE</li>
|
||||
<li>(stable) public static final int ISOCURRENCYSTYLE</li>
|
||||
<li>(stable) public static final int NUMBERSTYLE</li>
|
||||
<li>(stable) public static final int PERCENTSTYLE</li>
|
||||
<li>(stable) public static final int PLURALCURRENCYSTYLE</li>
|
||||
<li>(stable) public static final int SCIENTIFICSTYLE</li>
|
||||
<li>(stable) public static NumberFormat <i>getInstance</i>(ULocale, int)</li>
|
||||
<li>(stable) public static final NumberFormat <i>getInstance</i>(int)</li>
|
||||
<li>(stable) public static NumberFormat <i>getInstance</i>(java.util.Locale, int)</li>
|
||||
</ul>
|
||||
PluralFormat
|
||||
<ul>
|
||||
<li>(stable) public java.lang.String <i>toPattern</i>()</li>
|
||||
</ul>
|
||||
RuleBasedNumberFormat
|
||||
<ul>
|
||||
<li>(stable) public static final int NUMBERING_SYSTEM</li>
|
||||
</ul>
|
||||
SimpleDateFormat
|
||||
<ul>
|
||||
<li>(stable) public <i>SimpleDateFormat</i>(java.lang.String, java.lang.String, ULocale)</li>
|
||||
</ul>
|
||||
StringPrep
|
||||
<ul>
|
||||
<li>(stable) public static final int RFC3491_NAMEPREP</li>
|
||||
<li>(stable) public static final int RFC3530_NFS4_CIS_PREP</li>
|
||||
<li>(stable) public static final int RFC3530_NFS4_CS_PREP</li>
|
||||
<li>(stable) public static final int RFC3530_NFS4_CS_PREP_CI</li>
|
||||
<li>(stable) public static final int RFC3530_NFS4_MIXED_PREP_PREFIX</li>
|
||||
<li>(stable) public static final int RFC3530_NFS4_MIXED_PREP_SUFFIX</li>
|
||||
<li>(stable) public static final int RFC3722_ISCSI</li>
|
||||
<li>(stable) public static final int RFC3920_NODEPREP</li>
|
||||
<li>(stable) public static final int RFC3920_RESOURCEPREP</li>
|
||||
<li>(stable) public static final int RFC4011_MIB</li>
|
||||
<li>(stable) public static final int RFC4013_SASLPREP</li>
|
||||
<li>(stable) public static final int RFC4505_TRACE</li>
|
||||
<li>(stable) public static final int RFC4518_LDAP</li>
|
||||
<li>(stable) public static final int RFC4518_LDAP_CI</li>
|
||||
<li>(stable) public static StringPrep <i>getInstance</i>(int)</li>
|
||||
<li>(stable) public java.lang.String <i>prepare</i>(java.lang.String, int)</li>
|
||||
</ul>
|
||||
TimeUnitFormat
|
||||
<ul>
|
||||
<li>(stable) public static final int ABBREVIATED_NAME</li>
|
||||
<li>(stable) public static final int FULL_NAME</li>
|
||||
<li>(stable) public <i>TimeUnitFormat</i>(ULocale, int)</li>
|
||||
<li>(stable) public <i>TimeUnitFormat</i>(java.util.Locale, int)</li>
|
||||
</ul>
|
||||
UnicodeSet
|
||||
<ul>
|
||||
<li>(stable) public final UnicodeSet <i>removeAllStrings</i>()</li>
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
<h3>Package com.ibm.icu.util</h3>
|
||||
<ul>
|
||||
Calendar
|
||||
<ul>
|
||||
<li>(stable) public static final java.lang.String[] <i>getKeywordValuesForLocale</i>(java.lang.String, ULocale, boolean)</li>
|
||||
</ul>
|
||||
Currency
|
||||
<ul>
|
||||
<li>(stable) public static final int PLURAL_LONG_NAME</li>
|
||||
<li>(stable) public static final java.lang.String[] <i>getKeywordValuesForLocale</i>(java.lang.String, ULocale, boolean)</li>
|
||||
<li>(stable) public java.lang.String <i>getName</i>(ULocale, int, java.lang.String, boolean[])</li>
|
||||
<li>(stable) public java.lang.String <i>getName</i>(java.util.Locale, int, java.lang.String, boolean[])</li>
|
||||
</ul>
|
||||
LocaleData
|
||||
<ul>
|
||||
<li>(stable) public java.lang.String <i>getLocaleDisplayPattern</i>()</li>
|
||||
<li>(stable) public java.lang.String <i>getLocaleSeparator</i>()</li>
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
|
||||
<hr/>
|
||||
<h2>Added in ICU4J 4.3.3</h2>
|
||||
<h2>Added in ICU4J 4.3.4</h2>
|
||||
|
||||
<h3>Package com.ibm.icu.charset</h3>
|
||||
<ul>
|
||||
|
@ -185,6 +288,12 @@ CharsetDecoderICU
|
|||
<li>(draft) public class <i>CharTrie</i></li>
|
||||
<li>(draft) public class <i>CharTrie.FriendAgent</i></li>
|
||||
<li>(draft) public class <i>CharacterIteratorWrapper</i></li>
|
||||
<li>(draft) public class <i>CurrencyData</i></li>
|
||||
<li>(draft) public static abstract class <i>CurrencyData.CurrencyDisplayInfo</i></li>
|
||||
<li>(draft) public static interface <i>CurrencyData.CurrencyDisplayInfoProvider</i></li>
|
||||
<li>(draft) public static final class <i>CurrencyData.CurrencyFormatInfo</i></li>
|
||||
<li>(draft) public static final class <i>CurrencyData.CurrencySpacingInfo</i></li>
|
||||
<li>(draft) public static class <i>CurrencyData.DefaultInfo</i></li>
|
||||
<li>(draft) public final class <i>DateNumberFormat</i></li>
|
||||
<li>(draft) public final class <i>Differ</i></li>
|
||||
<li>(draft) public class <i>Grego</i></li>
|
||||
|
@ -206,6 +315,7 @@ CharsetDecoderICU
|
|||
<li>(draft) public static final class <i>ICURWLock.Stats</i></li>
|
||||
<li>(draft) public class <i>ICUResourceBundle</i></li>
|
||||
<li>(draft) public final class <i>ICUResourceBundleReader</i></li>
|
||||
<li>(draft) public class <i>ICUResourceTableAccess</i></li>
|
||||
<li>(draft) public class <i>ICUService</i></li>
|
||||
<li>(draft) public static interface <i>ICUService.Factory</i></li>
|
||||
<li>(draft) public static class <i>ICUService.Key</i></li>
|
||||
|
@ -218,6 +328,11 @@ CharsetDecoderICU
|
|||
<li>(draft) public class <i>InvalidFormatException</i></li>
|
||||
<li>(draft) public class <i>IterableComparator</i></li>
|
||||
<li>(draft) public class <i>JavaTimeZone</i></li>
|
||||
<li>(draft) public class <i>LocaleDisplayNamesImpl</i></li>
|
||||
<li>(draft) public static class <i>LocaleDisplayNamesImpl.DataTable</i></li>
|
||||
<li>(draft) public static final class <i>LocaleDisplayNamesImpl.DataTableType</i></li>
|
||||
<li>(draft) public final class <i>LocaleIDParser</i></li>
|
||||
<li>(draft) public class <i>LocaleIDs</i></li>
|
||||
<li>(draft) public class <i>LocaleUtility</i></li>
|
||||
<li>(draft) public class <i>MultiComparator</i></li>
|
||||
<li>(draft) public final class <i>NormalizerImpl</i></li>
|
||||
|
@ -288,92 +403,101 @@ UCharacter
|
|||
</ul>
|
||||
UCharacter.JoiningGroup
|
||||
<ul>
|
||||
<li>(draft) public static final int FARSI_YEH</li>
|
||||
<li>(draft) public static final int NYA</li>
|
||||
<li>(stable) public static final int FARSI_YEH</li>
|
||||
<li>(stable) public static final int NYA</li>
|
||||
</ul>
|
||||
UCharacter.LineBreak
|
||||
<ul>
|
||||
<li>(draft) public static final int CLOSE_PARENTHESIS</li>
|
||||
<li>(stable) public static final int CLOSE_PARENTHESIS</li>
|
||||
</ul>
|
||||
UCharacter.UnicodeBlock
|
||||
<ul>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock AVESTAN</li>
|
||||
<li>(draft) public static final int AVESTAN_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock BAMUM</li>
|
||||
<li>(draft) public static final int BAMUM_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C</li>
|
||||
<li>(draft) public static final int CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock COMMON_INDIC_NUMBER_FORMS</li>
|
||||
<li>(draft) public static final int COMMON_INDIC_NUMBER_FORMS_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock DEVANAGARI_EXTENDED</li>
|
||||
<li>(draft) public static final int DEVANAGARI_EXTENDED_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock EGYPTIAN_HIEROGLYPHS</li>
|
||||
<li>(draft) public static final int EGYPTIAN_HIEROGLYPHS_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock ENCLOSED_ALPHANUMERIC_SUPPLEMENT</li>
|
||||
<li>(draft) public static final int ENCLOSED_ALPHANUMERIC_SUPPLEMENT_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock ENCLOSED_IDEOGRAPHIC_SUPPLEMENT</li>
|
||||
<li>(draft) public static final int ENCLOSED_IDEOGRAPHIC_SUPPLEMENT_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock HANGUL_JAMO_EXTENDED_A</li>
|
||||
<li>(draft) public static final int HANGUL_JAMO_EXTENDED_A_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock HANGUL_JAMO_EXTENDED_B</li>
|
||||
<li>(draft) public static final int HANGUL_JAMO_EXTENDED_B_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock IMPERIAL_ARAMAIC</li>
|
||||
<li>(draft) public static final int IMPERIAL_ARAMAIC_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock INSCRIPTIONAL_PAHLAVI</li>
|
||||
<li>(draft) public static final int INSCRIPTIONAL_PAHLAVI_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock INSCRIPTIONAL_PARTHIAN</li>
|
||||
<li>(draft) public static final int INSCRIPTIONAL_PARTHIAN_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock JAVANESE</li>
|
||||
<li>(draft) public static final int JAVANESE_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock KAITHI</li>
|
||||
<li>(draft) public static final int KAITHI_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock LISU</li>
|
||||
<li>(draft) public static final int LISU_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock MEETEI_MAYEK</li>
|
||||
<li>(draft) public static final int MEETEI_MAYEK_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock MYANMAR_EXTENDED_A</li>
|
||||
<li>(draft) public static final int MYANMAR_EXTENDED_A_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock OLD_SOUTH_ARABIAN</li>
|
||||
<li>(draft) public static final int OLD_SOUTH_ARABIAN_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock OLD_TURKIC</li>
|
||||
<li>(draft) public static final int OLD_TURKIC_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock RUMI_NUMERAL_SYMBOLS</li>
|
||||
<li>(draft) public static final int RUMI_NUMERAL_SYMBOLS_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock SAMARITAN</li>
|
||||
<li>(draft) public static final int SAMARITAN_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock TAI_THAM</li>
|
||||
<li>(draft) public static final int TAI_THAM_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock TAI_VIET</li>
|
||||
<li>(draft) public static final int TAI_VIET_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED</li>
|
||||
<li>(draft) public static final int UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED_ID</li>
|
||||
<li>(draft) public static final UCharacter.UnicodeBlock VEDIC_EXTENSIONS</li>
|
||||
<li>(draft) public static final int VEDIC_EXTENSIONS_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock AVESTAN</li>
|
||||
<li>(stable) public static final int AVESTAN_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock BAMUM</li>
|
||||
<li>(stable) public static final int BAMUM_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C</li>
|
||||
<li>(stable) public static final int CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock COMMON_INDIC_NUMBER_FORMS</li>
|
||||
<li>(stable) public static final int COMMON_INDIC_NUMBER_FORMS_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock DEVANAGARI_EXTENDED</li>
|
||||
<li>(stable) public static final int DEVANAGARI_EXTENDED_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock EGYPTIAN_HIEROGLYPHS</li>
|
||||
<li>(stable) public static final int EGYPTIAN_HIEROGLYPHS_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock ENCLOSED_ALPHANUMERIC_SUPPLEMENT</li>
|
||||
<li>(stable) public static final int ENCLOSED_ALPHANUMERIC_SUPPLEMENT_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock ENCLOSED_IDEOGRAPHIC_SUPPLEMENT</li>
|
||||
<li>(stable) public static final int ENCLOSED_IDEOGRAPHIC_SUPPLEMENT_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock HANGUL_JAMO_EXTENDED_A</li>
|
||||
<li>(stable) public static final int HANGUL_JAMO_EXTENDED_A_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock HANGUL_JAMO_EXTENDED_B</li>
|
||||
<li>(stable) public static final int HANGUL_JAMO_EXTENDED_B_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock IMPERIAL_ARAMAIC</li>
|
||||
<li>(stable) public static final int IMPERIAL_ARAMAIC_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock INSCRIPTIONAL_PAHLAVI</li>
|
||||
<li>(stable) public static final int INSCRIPTIONAL_PAHLAVI_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock INSCRIPTIONAL_PARTHIAN</li>
|
||||
<li>(stable) public static final int INSCRIPTIONAL_PARTHIAN_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock JAVANESE</li>
|
||||
<li>(stable) public static final int JAVANESE_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock KAITHI</li>
|
||||
<li>(stable) public static final int KAITHI_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock LISU</li>
|
||||
<li>(stable) public static final int LISU_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock MEETEI_MAYEK</li>
|
||||
<li>(stable) public static final int MEETEI_MAYEK_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock MYANMAR_EXTENDED_A</li>
|
||||
<li>(stable) public static final int MYANMAR_EXTENDED_A_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock OLD_SOUTH_ARABIAN</li>
|
||||
<li>(stable) public static final int OLD_SOUTH_ARABIAN_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock OLD_TURKIC</li>
|
||||
<li>(stable) public static final int OLD_TURKIC_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock RUMI_NUMERAL_SYMBOLS</li>
|
||||
<li>(stable) public static final int RUMI_NUMERAL_SYMBOLS_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock SAMARITAN</li>
|
||||
<li>(stable) public static final int SAMARITAN_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock TAI_THAM</li>
|
||||
<li>(stable) public static final int TAI_THAM_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock TAI_VIET</li>
|
||||
<li>(stable) public static final int TAI_VIET_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED</li>
|
||||
<li>(stable) public static final int UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED_ID</li>
|
||||
<li>(stable) public static final UCharacter.UnicodeBlock VEDIC_EXTENSIONS</li>
|
||||
<li>(stable) public static final int VEDIC_EXTENSIONS_ID</li>
|
||||
</ul>
|
||||
UProperty
|
||||
<ul>
|
||||
<li>(draft) public static final int CASED</li>
|
||||
<li>(draft) public static final int CASE_IGNORABLE</li>
|
||||
<li>(draft) public static final int CHANGES_WHEN_CASEFOLDED</li>
|
||||
<li>(draft) public static final int CHANGES_WHEN_CASEMAPPED</li>
|
||||
<li>(draft) public static final int CHANGES_WHEN_LOWERCASED</li>
|
||||
<li>(draft) public static final int CHANGES_WHEN_TITLECASED</li>
|
||||
<li>(draft) public static final int CHANGES_WHEN_UPPERCASED</li>
|
||||
<li>(stable) public static final int CASED</li>
|
||||
<li>(stable) public static final int CASE_IGNORABLE</li>
|
||||
<li>(stable) public static final int CHANGES_WHEN_CASEFOLDED</li>
|
||||
<li>(stable) public static final int CHANGES_WHEN_CASEMAPPED</li>
|
||||
<li>(stable) public static final int CHANGES_WHEN_LOWERCASED</li>
|
||||
<li>(stable) public static final int CHANGES_WHEN_TITLECASED</li>
|
||||
<li>(stable) public static final int CHANGES_WHEN_UPPERCASED</li>
|
||||
<li><span style='color:red'>*internal* </span>public static final int UNDEFINED</li>
|
||||
</ul>
|
||||
UScript
|
||||
<ul>
|
||||
<li>(draft) public static final int BAMUM</li>
|
||||
<li>(draft) public static final int LISU</li>
|
||||
<li>(draft) public static final int NAKHI_GEBA</li>
|
||||
<li>(draft) public static final int OLD_SOUTH_ARABIAN</li>
|
||||
<li>(stable) public static final int BAMUM</li>
|
||||
<li>(stable) public static final int LISU</li>
|
||||
<li>(stable) public static final int NAKHI_GEBA</li>
|
||||
<li>(stable) public static final int OLD_SOUTH_ARABIAN</li>
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
<h3>Package com.ibm.icu.text</h3>
|
||||
<ul>
|
||||
<li>(draft) public interface <i>BaseFormat</i></li>
|
||||
<li>(draft) public abstract class <i>CurrencyDisplayNames</i></li>
|
||||
<li>(draft) public class <i>CurrencyMetaInfo</i></li>
|
||||
<li>(draft) public static final class <i>CurrencyMetaInfo.CurrencyDigits</i></li>
|
||||
<li>(draft) public static final class <i>CurrencyMetaInfo.CurrencyFilter</i></li>
|
||||
<li>(draft) public static final class <i>CurrencyMetaInfo.CurrencyInfo</i></li>
|
||||
<li>(draft) public class <i>FilteredNormalizer2</i></li>
|
||||
<li>(draft) public interface <i>Formatter</i></li>
|
||||
<li>(draft) public abstract class <i>LocaleDisplayNames</i></li>
|
||||
<li>(draft) public static final class <i>LocaleDisplayNames.DialectHandling</i></li>
|
||||
<li>(draft) public abstract class <i>Normalizer2</i></li>
|
||||
<li>(draft) public interface <i>Parser</i></li>
|
||||
<li>(draft) public interface <i>RbnfLenientScanner</i></li>
|
||||
<li>(draft) public interface <i>RbnfLenientScannerProvider</i></li>
|
||||
|
@ -392,11 +516,24 @@ DateIntervalInfo
|
|||
</ul>
|
||||
DateTimePatternGenerator
|
||||
<ul>
|
||||
<li>(draft) public static final int MATCH_ALL_FIELDS_LENGTH</li>
|
||||
<li>(draft) public static final int MATCH_HOUR_FIELD_LENGTH</li>
|
||||
<li>(draft) public static final int MATCH_NO_OPTIONS</li>
|
||||
<li>(stable) public DateTimePatternGenerator <i>cloneAsThawed</i>()</li>
|
||||
<li>(stable) public DateTimePatternGenerator <i>freeze</i>()</li>
|
||||
<li>(draft) public java.lang.String <i>getBestPattern</i>(java.lang.String, int)</li>
|
||||
<li><span style='color:red'>*internal* </span>public static DateTimePatternGenerator <i>getFrozenInstance</i>(ULocale)</li>
|
||||
<li>(draft) public java.lang.String <i>replaceFieldTypes</i>(java.lang.String, java.lang.String, int)</li>
|
||||
<li><span style='color:red'>*internal* </span>public boolean <i>skeletonsAreSimilar</i>(java.lang.String, java.lang.String)</li>
|
||||
</ul>
|
||||
DateTimePatternGenerator.VariableField
|
||||
<ul>
|
||||
<li>(draft) protected boolean <i>isNumeric</i>()</li>
|
||||
</ul>
|
||||
DecimalFormatSymbols
|
||||
<ul>
|
||||
<li>(draft) public static final int CURRENCY_SPC_SURROUNDING_MATCH</li>
|
||||
</ul>
|
||||
IndexCharacters
|
||||
<ul>
|
||||
<li>(draft) public <i>IndexCharacters</i>(ULocale, UnicodeSet, Collator)</li>
|
||||
|
@ -408,30 +545,30 @@ RuleBasedNumberFormat
|
|||
</ul>
|
||||
UnicodeSet
|
||||
<ul>
|
||||
<li>(draft) public <i>UnicodeSet</i>(int[])</li>
|
||||
<li>(stable) public <i>UnicodeSet</i>(int[])</li>
|
||||
<li>(stable) public UnicodeSet <i>add</i>(java.util.Collection)</li>
|
||||
<li>(draft) public UnicodeSet <i>addAll</i>(java.lang.String[])</li>
|
||||
<li>(draft) public UnicodeSet <i>addAll</i>(java.util.Collection)</li>
|
||||
<li>(stable) public UnicodeSet <i>addAll</i>(java.lang.String[])</li>
|
||||
<li>(stable) public UnicodeSet <i>addAll</i>(java.util.Collection)</li>
|
||||
<li>(draft) public java.lang.String[] <i>addAllTo</i>(java.lang.String[])</li>
|
||||
<li>(draft) public java.util.Collection <i>addAllTo</i>(T)</li>
|
||||
<li>(draft) public static java.util.Collection <i>addAllTo</i>(java.lang.Iterable, U)</li>
|
||||
<li>(stable) public static java.util.Collection <i>addAllTo</i>(java.lang.Iterable, U)</li>
|
||||
<li><span style='color:red'>*internal* </span>public UnicodeSet <i>addBridges</i>(UnicodeSet)</li>
|
||||
<li>(draft) public static int <i>compare</i>(int, java.lang.String)</li>
|
||||
<li>(stable) public static int <i>compare</i>(int, java.lang.String)</li>
|
||||
<li>(draft) public static int <i>compare</i>(java.lang.Iterable, java.lang.Iterable)</li>
|
||||
<li>(draft) public static int <i>compare</i>(java.lang.String, int)</li>
|
||||
<li>(stable) public static int <i>compare</i>(java.lang.String, int)</li>
|
||||
<li>(draft) public static int <i>compare</i>(java.util.Collection, java.util.Collection, UnicodeSet.ComparisonStyle)</li>
|
||||
<li>(draft) public int <i>compareTo</i>(UnicodeSet)</li>
|
||||
<li>(draft) public int <i>compareTo</i>(UnicodeSet, UnicodeSet.ComparisonStyle)</li>
|
||||
<li>(stable) public int <i>compareTo</i>(UnicodeSet)</li>
|
||||
<li>(stable) public int <i>compareTo</i>(UnicodeSet, UnicodeSet.ComparisonStyle)</li>
|
||||
<li>(draft) public int <i>compareTo</i>(java.lang.Iterable)</li>
|
||||
<li>(draft) public boolean <i>containsAll</i>(java.util.Collection)</li>
|
||||
<li>(draft) public boolean <i>containsNone</i>(java.util.Collection)</li>
|
||||
<li>(draft) public final boolean <i>containsSome</i>(java.util.Collection)</li>
|
||||
<li>(stable) public boolean <i>containsAll</i>(java.util.Collection)</li>
|
||||
<li>(stable) public boolean <i>containsNone</i>(java.util.Collection)</li>
|
||||
<li>(stable) public final boolean <i>containsSome</i>(java.util.Collection)</li>
|
||||
<li><span style='color:red'>*internal* </span>public int <i>findIn</i>(java.lang.CharSequence, int, boolean)</li>
|
||||
<li><span style='color:red'>*internal* </span>public int <i>findLastIn</i>(java.lang.CharSequence, int, boolean)</li>
|
||||
<li><span style='color:red'>*internal* </span>public static int <i>getSingleCodePoint</i>(java.lang.String)</li>
|
||||
<li>(draft) public java.util.Iterator <i>iterator</i>()</li>
|
||||
<li>(draft) public UnicodeSet <i>removeAll</i>(java.util.Collection)</li>
|
||||
<li>(draft) public UnicodeSet <i>retainAll</i>(java.util.Collection)</li>
|
||||
<li>(stable) public java.util.Iterator <i>iterator</i>()</li>
|
||||
<li>(stable) public UnicodeSet <i>removeAll</i>(java.util.Collection)</li>
|
||||
<li>(stable) public UnicodeSet <i>retainAll</i>(java.util.Collection)</li>
|
||||
<li>(draft) public java.lang.Iterable <i>strings</i>()</li>
|
||||
<li>(draft) public java.lang.String <i>stripFrom</i>(java.lang.CharSequence, boolean)</li>
|
||||
<li>(draft) public static java.lang.String[] <i>toArray</i>(UnicodeSet)</li>
|
||||
|
@ -460,7 +597,7 @@ HebrewCalendar
|
|||
</ul>
|
||||
LocaleData
|
||||
<ul>
|
||||
<li>(draft) public static VersionInfo <i>getCLDRVersion</i>()</li>
|
||||
<li>(stable) public static VersionInfo <i>getCLDRVersion</i>()</li>
|
||||
</ul>
|
||||
TimeZone
|
||||
<ul>
|
||||
|
@ -495,6 +632,8 @@ ULocale.Builder
|
|||
</ul>
|
||||
UResourceBundle
|
||||
<ul>
|
||||
<li><span style='color:red'>*internal* </span>protected UResourceBundle <i>findTopLevel</i>(int)</li>
|
||||
<li><span style='color:red'>*internal* </span>protected UResourceBundle <i>findTopLevel</i>(java.lang.String)</li>
|
||||
<li><span style='color:red'>*internal* </span>protected java.util.Set <i>handleKeySet</i>()</li>
|
||||
<li><span style='color:red'>*internal* </span>protected boolean <i>isTopLevelResource</i>()</li>
|
||||
<li><span style='color:red'>*internal* </span>public java.util.Set <i>keySet</i>()</li>
|
||||
|
@ -502,11 +641,11 @@ UResourceBundle
|
|||
VersionInfo
|
||||
<ul>
|
||||
<li><span style='color:red'>*internal* </span>public static final java.lang.String ICU_DATA_VERSION_PATH</li>
|
||||
<li>(draft) public static final VersionInfo UNICODE_5_2</li>
|
||||
<li>(stable) public static final VersionInfo UNICODE_5_2</li>
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
<hr/>
|
||||
<p><i><font size="-1">Contents generated by ReportAPI tool on Tue Nov 17 23:29:39 EST 2009<br/>Copyright (C) 2009, International Business Machines Corporation, All Rights Reserved.</font></i></p>
|
||||
<p><i><font size="-1">Contents generated by ReportAPI tool on Tue Jan 19 13:57:27 EST 2010<br/>Copyright (C) 2010, International Business Machines Corporation, All Rights Reserved.</font></i></p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
******************************************************************************
|
||||
* Copyright (C) 1996-2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 1996-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
******************************************************************************
|
||||
*/
|
||||
|
@ -35,8 +35,7 @@ import com.ibm.icu.text.UnicodeSet;
|
|||
* CharSequence returns the list of names the corresponding charsets which can
|
||||
* convert the CharSequence.
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public final class CharsetSelector {
|
||||
private IntTrie trie;
|
||||
|
@ -161,8 +160,7 @@ public final class CharsetSelector {
|
|||
* @throws UnsupportedCharsetException
|
||||
* If no support for the named charset is available in this
|
||||
* instance of the Java virtual machine.
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public CharsetSelector(List<String> charsetList, UnicodeSet excludedCodePoints,
|
||||
int mappingTypes) {
|
||||
|
@ -193,8 +191,7 @@ public final class CharsetSelector {
|
|||
* returned encoding names and their order will be the same as
|
||||
* supplied when building the selector.
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public List<String> selectForString(CharSequence unicodeText) {
|
||||
int columns = (encodings.length + 31) / 32;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*******************************************************************************
|
||||
* Copyright (C) 1996-2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 1996-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -641,8 +641,7 @@ public abstract class Collator implements Comparator<Object>, Cloneable
|
|||
* with the given locale in preferred order. Otherwise,
|
||||
* it will return all the available values for the locale.
|
||||
* @return an array of string values for the given key and the locale.
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final String[] getKeywordValuesForLocale(String key, ULocale locale, boolean commonlyUsed) {
|
||||
// Note: The parameter commonlyUsed is actually not used.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*******************************************************************************
|
||||
* Copyright (C) 1996-2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 1996-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -24,7 +24,7 @@ public interface UCharacterNameChoice
|
|||
static final int UNICODE_CHAR_NAME = 0;
|
||||
static final int UNICODE_10_CHAR_NAME = 1;
|
||||
static final int EXTENDED_CHAR_NAME = 2;
|
||||
/** Corrected name from NameAliases.txt. @draft ICU 4.4 */
|
||||
/* Corrected name from NameAliases.txt. */
|
||||
static final int CHAR_NAME_ALIAS = 3;
|
||||
static final int CHAR_NAME_CHOICE_COUNT = 4;
|
||||
static final int ISO_COMMENT_ = CHAR_NAME_CHOICE_COUNT;
|
||||
|
|
|
@ -932,57 +932,57 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection
|
|||
|
||||
/* New blocks in Unicode 5.2 */
|
||||
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int SAMARITAN_ID = 172; /*[0800]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED_ID = 173; /*[18B0]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int TAI_THAM_ID = 174; /*[1A20]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int VEDIC_EXTENSIONS_ID = 175; /*[1CD0]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int LISU_ID = 176; /*[A4D0]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int BAMUM_ID = 177; /*[A6A0]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int COMMON_INDIC_NUMBER_FORMS_ID = 178; /*[A830]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int DEVANAGARI_EXTENDED_ID = 179; /*[A8E0]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int HANGUL_JAMO_EXTENDED_A_ID = 180; /*[A960]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int JAVANESE_ID = 181; /*[A980]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int MYANMAR_EXTENDED_A_ID = 182; /*[AA60]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int TAI_VIET_ID = 183; /*[AA80]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int MEETEI_MAYEK_ID = 184; /*[ABC0]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int HANGUL_JAMO_EXTENDED_B_ID = 185; /*[D7B0]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int IMPERIAL_ARAMAIC_ID = 186; /*[10840]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int OLD_SOUTH_ARABIAN_ID = 187; /*[10A60]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int AVESTAN_ID = 188; /*[10B00]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int INSCRIPTIONAL_PARTHIAN_ID = 189; /*[10B40]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int INSCRIPTIONAL_PAHLAVI_ID = 190; /*[10B60]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int OLD_TURKIC_ID = 191; /*[10C00]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int RUMI_NUMERAL_SYMBOLS_ID = 192; /*[10E60]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int KAITHI_ID = 193; /*[11080]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int EGYPTIAN_HIEROGLYPHS_ID = 194; /*[13000]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int ENCLOSED_ALPHANUMERIC_SUPPLEMENT_ID = 195; /*[1F100]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int ENCLOSED_IDEOGRAPHIC_SUPPLEMENT_ID = 196; /*[1F200]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C_ID = 197; /*[2A700]*/
|
||||
|
||||
/**
|
||||
|
@ -1888,85 +1888,85 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection
|
|||
|
||||
/* New blocks in Unicode 5.2 */
|
||||
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock SAMARITAN =
|
||||
new UnicodeBlock("SAMARITAN", SAMARITAN_ID); /*[0800]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED =
|
||||
new UnicodeBlock("UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED",
|
||||
UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED_ID); /*[18B0]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock TAI_THAM =
|
||||
new UnicodeBlock("TAI_THAM", TAI_THAM_ID); /*[1A20]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock VEDIC_EXTENSIONS =
|
||||
new UnicodeBlock("VEDIC_EXTENSIONS", VEDIC_EXTENSIONS_ID); /*[1CD0]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock LISU =
|
||||
new UnicodeBlock("LISU", LISU_ID); /*[A4D0]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock BAMUM =
|
||||
new UnicodeBlock("BAMUM", BAMUM_ID); /*[A6A0]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock COMMON_INDIC_NUMBER_FORMS =
|
||||
new UnicodeBlock("COMMON_INDIC_NUMBER_FORMS", COMMON_INDIC_NUMBER_FORMS_ID); /*[A830]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock DEVANAGARI_EXTENDED =
|
||||
new UnicodeBlock("DEVANAGARI_EXTENDED", DEVANAGARI_EXTENDED_ID); /*[A8E0]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock HANGUL_JAMO_EXTENDED_A =
|
||||
new UnicodeBlock("HANGUL_JAMO_EXTENDED_A", HANGUL_JAMO_EXTENDED_A_ID); /*[A960]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock JAVANESE =
|
||||
new UnicodeBlock("JAVANESE", JAVANESE_ID); /*[A980]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock MYANMAR_EXTENDED_A =
|
||||
new UnicodeBlock("MYANMAR_EXTENDED_A", MYANMAR_EXTENDED_A_ID); /*[AA60]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock TAI_VIET =
|
||||
new UnicodeBlock("TAI_VIET", TAI_VIET_ID); /*[AA80]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock MEETEI_MAYEK =
|
||||
new UnicodeBlock("MEETEI_MAYEK", MEETEI_MAYEK_ID); /*[ABC0]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock HANGUL_JAMO_EXTENDED_B =
|
||||
new UnicodeBlock("HANGUL_JAMO_EXTENDED_B", HANGUL_JAMO_EXTENDED_B_ID); /*[D7B0]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock IMPERIAL_ARAMAIC =
|
||||
new UnicodeBlock("IMPERIAL_ARAMAIC", IMPERIAL_ARAMAIC_ID); /*[10840]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock OLD_SOUTH_ARABIAN =
|
||||
new UnicodeBlock("OLD_SOUTH_ARABIAN", OLD_SOUTH_ARABIAN_ID); /*[10A60]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock AVESTAN =
|
||||
new UnicodeBlock("AVESTAN", AVESTAN_ID); /*[10B00]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock INSCRIPTIONAL_PARTHIAN =
|
||||
new UnicodeBlock("INSCRIPTIONAL_PARTHIAN", INSCRIPTIONAL_PARTHIAN_ID); /*[10B40]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock INSCRIPTIONAL_PAHLAVI =
|
||||
new UnicodeBlock("INSCRIPTIONAL_PAHLAVI", INSCRIPTIONAL_PAHLAVI_ID); /*[10B60]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock OLD_TURKIC =
|
||||
new UnicodeBlock("OLD_TURKIC", OLD_TURKIC_ID); /*[10C00]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock RUMI_NUMERAL_SYMBOLS =
|
||||
new UnicodeBlock("RUMI_NUMERAL_SYMBOLS", RUMI_NUMERAL_SYMBOLS_ID); /*[10E60]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock KAITHI =
|
||||
new UnicodeBlock("KAITHI", KAITHI_ID); /*[11080]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock EGYPTIAN_HIEROGLYPHS =
|
||||
new UnicodeBlock("EGYPTIAN_HIEROGLYPHS", EGYPTIAN_HIEROGLYPHS_ID); /*[13000]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock ENCLOSED_ALPHANUMERIC_SUPPLEMENT =
|
||||
new UnicodeBlock("ENCLOSED_ALPHANUMERIC_SUPPLEMENT",
|
||||
ENCLOSED_ALPHANUMERIC_SUPPLEMENT_ID); /*[1F100]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock ENCLOSED_IDEOGRAPHIC_SUPPLEMENT =
|
||||
new UnicodeBlock("ENCLOSED_IDEOGRAPHIC_SUPPLEMENT",
|
||||
ENCLOSED_IDEOGRAPHIC_SUPPLEMENT_ID); /*[1F200]*/
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C =
|
||||
new UnicodeBlock("CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C",
|
||||
CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C_ID); /*[2A700]*/
|
||||
|
@ -2503,9 +2503,9 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection
|
|||
* @stable ICU 4.0
|
||||
*/
|
||||
public static final int BURUSHASKI_YEH_BARREE = 54;
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int FARSI_YEH = 55;
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int NYA = 56;
|
||||
/**
|
||||
* @stable ICU 2.4
|
||||
|
@ -2871,7 +2871,7 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection
|
|||
* @stable ICU 3.4
|
||||
*/
|
||||
public static final int JV = 35;
|
||||
/** @draft ICU 4.4 */
|
||||
/** @stable ICU 4.4 */
|
||||
public static final int CLOSE_PARENTHESIS = 36; /*[CP]*/ /* new in Unicode 5.2/ICU 4.4 */
|
||||
/**
|
||||
* @stable ICU 2.4
|
||||
|
@ -4091,6 +4091,7 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection
|
|||
* @param name Unicode name alias whose code point is to be returned
|
||||
* @return code point or -1 if name is not found
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static int getCharFromNameAlias(String name){
|
||||
return UCharacterName.INSTANCE.getCharFromName(UCharacterNameChoice.CHAR_NAME_ALIAS, name);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*******************************************************************************
|
||||
* Copyright (C) 1996-2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 1996-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -472,38 +472,38 @@ public interface UProperty
|
|||
/**
|
||||
* Binary property Cased.
|
||||
* For Lowercase, Uppercase and Titlecase characters.
|
||||
* @draft ICU 4.4
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
public static final int CASED=49;
|
||||
/**
|
||||
* Binary property Case_Ignorable.
|
||||
* Used in context-sensitive case mappings.
|
||||
* @draft ICU 4.4
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
public static final int CASE_IGNORABLE=50;
|
||||
/**
|
||||
* Binary property Changes_When_Lowercased.
|
||||
* @draft ICU 4.4
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
public static final int CHANGES_WHEN_LOWERCASED=51;
|
||||
/**
|
||||
* Binary property Changes_When_Uppercased.
|
||||
* @draft ICU 4.4
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
public static final int CHANGES_WHEN_UPPERCASED=52;
|
||||
/**
|
||||
* Binary property Changes_When_Titlecased.
|
||||
* @draft ICU 4.4
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
public static final int CHANGES_WHEN_TITLECASED=53;
|
||||
/**
|
||||
* Binary property Changes_When_Casefolded.
|
||||
* @draft ICU 4.4
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
public static final int CHANGES_WHEN_CASEFOLDED=54;
|
||||
/**
|
||||
* Binary property Changes_When_Casemapped.
|
||||
* @draft ICU 4.4
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
public static final int CHANGES_WHEN_CASEMAPPED=55;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2001-2009 International Business Machines Corporation and *
|
||||
* Copyright (C) 2001-2010 International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -719,25 +719,24 @@ public final class UScript {
|
|||
*/
|
||||
public static final int SYMBOLS = 129;/* Zsym */
|
||||
|
||||
/* New script codes from ISO 15924 @draft ICU 4.4 */
|
||||
/**
|
||||
* ISO 15924 script code
|
||||
* @draft ICU 4.4
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
public static final int BAMUM = 130;/* Bamu */
|
||||
/**
|
||||
* ISO 15924 script code
|
||||
* @draft ICU 4.4
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
public static final int LISU = 131;/* Lisu */
|
||||
/**
|
||||
* ISO 15924 script code
|
||||
* @draft ICU 4.4
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
public static final int NAKHI_GEBA = 132;/* Nkgb */
|
||||
/**
|
||||
* ISO 15924 script code
|
||||
* @draft ICU 4.4
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
public static final int OLD_SOUTH_ARABIAN = 133;/* Sarb */
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ import java.util.Map;
|
|||
/**
|
||||
* Returns currency names localized for a locale.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public abstract class CurrencyDisplayNames {
|
||||
/**
|
||||
|
@ -21,6 +22,7 @@ public abstract class CurrencyDisplayNames {
|
|||
* @param locale the locale into which to localize the names
|
||||
* @return a CurrencyDisplayNames
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static CurrencyDisplayNames getInstance(ULocale locale) {
|
||||
return CurrencyData.provider.getInstance(locale, true);
|
||||
|
@ -30,6 +32,7 @@ public abstract class CurrencyDisplayNames {
|
|||
* Returns true if currency display name data is available.
|
||||
* @return true if currency display name data is available
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static boolean hasData() {
|
||||
return CurrencyData.provider.hasData();
|
||||
|
@ -41,6 +44,7 @@ public abstract class CurrencyDisplayNames {
|
|||
* If hasData is false, returns {@link com.ibm.icu.util.ULocale#ROOT}.
|
||||
* @return the display locale
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public abstract ULocale getLocale();
|
||||
|
||||
|
@ -50,6 +54,7 @@ public abstract class CurrencyDisplayNames {
|
|||
* @param isoCode the three-letter ISO code.
|
||||
* @return the display name.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public abstract String getSymbol(String isoCode);
|
||||
|
||||
|
@ -59,6 +64,7 @@ public abstract class CurrencyDisplayNames {
|
|||
* @param isoCode the three-letter ISO code
|
||||
* @return the display name
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public abstract String getName(String isoCode);
|
||||
|
||||
|
@ -70,6 +76,7 @@ public abstract class CurrencyDisplayNames {
|
|||
* @return the display name
|
||||
* @see com.ibm.icu.text.PluralRules
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public abstract String getPluralName(String isoCode, String pluralKey);
|
||||
|
||||
|
@ -79,6 +86,7 @@ public abstract class CurrencyDisplayNames {
|
|||
* The returned map is unmodifiable.
|
||||
* @return the map
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public abstract Map<String, String> symbolMap();
|
||||
|
||||
|
@ -88,6 +96,7 @@ public abstract class CurrencyDisplayNames {
|
|||
* The returned map is unmodifiable.
|
||||
* @return the map
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public abstract Map<String, String> nameMap();
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@ import com.ibm.icu.util.GregorianCalendar;
|
|||
/**
|
||||
* Provides information about currencies that is not specific to a locale.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public class CurrencyMetaInfo {
|
||||
private static final CurrencyMetaInfo impl;
|
||||
|
@ -26,6 +27,7 @@ public class CurrencyMetaInfo {
|
|||
* Returns the unique instance of the currency meta info.
|
||||
* @return the meta info
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static CurrencyMetaInfo getInstance() {
|
||||
return impl;
|
||||
|
@ -35,6 +37,7 @@ public class CurrencyMetaInfo {
|
|||
* Returns true if there is data for the currency meta info.
|
||||
* @return true if there is actual data
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static boolean hasData() {
|
||||
return hasData;
|
||||
|
@ -50,29 +53,34 @@ public class CurrencyMetaInfo {
|
|||
/**
|
||||
* A filter used to select which currency info is returned.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final class CurrencyFilter {
|
||||
/**
|
||||
* The region to filter on. If null, accepts any region.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final String region;
|
||||
|
||||
/**
|
||||
* The currency to filter on. If null, accepts any currency.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final String currency;
|
||||
|
||||
/**
|
||||
* The from date to filter on (milliseconds). Accepts any currency on or after this date.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final long from;
|
||||
|
||||
/**
|
||||
* The to date to filter on (milliseconds). Accepts any currency on or before this date.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final long to;
|
||||
|
||||
|
@ -96,6 +104,7 @@ public class CurrencyMetaInfo {
|
|||
* Returns a filter that accepts all currency data.
|
||||
* @return a filter
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static CurrencyFilter all() {
|
||||
return ALL;
|
||||
|
@ -106,6 +115,7 @@ public class CurrencyMetaInfo {
|
|||
* @return a filter
|
||||
* @see #withDate(Date)
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static CurrencyFilter now() {
|
||||
return ALL.withDate(new Date());
|
||||
|
@ -117,6 +127,7 @@ public class CurrencyMetaInfo {
|
|||
* @return a filter
|
||||
* @see #withRegion(String)
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static CurrencyFilter onRegion(String region) {
|
||||
return ALL.withRegion(region);
|
||||
|
@ -128,6 +139,7 @@ public class CurrencyMetaInfo {
|
|||
* @return a filter
|
||||
* @see #withCurrency(String)
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static CurrencyFilter onCurrency(String currency) {
|
||||
return ALL.withCurrency(currency);
|
||||
|
@ -139,6 +151,7 @@ public class CurrencyMetaInfo {
|
|||
* @return a filter
|
||||
* @see #withDate(Date)
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static CurrencyFilter onDate(Date date) {
|
||||
return ALL.withDate(date);
|
||||
|
@ -153,6 +166,7 @@ public class CurrencyMetaInfo {
|
|||
* @return a filter
|
||||
* @see #withRange(Date, Date)
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static CurrencyFilter onRange(Date from, Date to) {
|
||||
return ALL.withRange(from, to);
|
||||
|
@ -165,6 +179,7 @@ public class CurrencyMetaInfo {
|
|||
* @return the filter
|
||||
* @see #onRegion(String)
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public CurrencyFilter withRegion(String region) {
|
||||
return new CurrencyFilter(region, this.currency, this.from, this.to);
|
||||
|
@ -177,6 +192,7 @@ public class CurrencyMetaInfo {
|
|||
* @return the filter
|
||||
* @see #onCurrency(String)
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public CurrencyFilter withCurrency(String currency) {
|
||||
return new CurrencyFilter(this.region, currency, this.from, this.to);
|
||||
|
@ -188,6 +204,7 @@ public class CurrencyMetaInfo {
|
|||
* @return the filter
|
||||
* @see #onDate(Date)
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public CurrencyFilter withDate(Date date) {
|
||||
return new CurrencyFilter(this.region, this.currency, date, date);
|
||||
|
@ -200,6 +217,7 @@ public class CurrencyMetaInfo {
|
|||
* @return the filter
|
||||
* @see #onRange(Date, Date)
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public CurrencyFilter withRange(Date from, Date to) {
|
||||
return new CurrencyFilter(this.region, this.currency, from, to);
|
||||
|
@ -216,6 +234,7 @@ public class CurrencyMetaInfo {
|
|||
* @param rhs the currency filter to compare to
|
||||
* @return true if the filters are equal
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public boolean equals(CurrencyFilter rhs) {
|
||||
return this == rhs || (rhs != null &&
|
||||
|
@ -257,16 +276,19 @@ public class CurrencyMetaInfo {
|
|||
/**
|
||||
* Represents the raw information about fraction digits and rounding increment.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final class CurrencyDigits {
|
||||
/**
|
||||
* Number of fraction digits used to display this currency.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final byte fractionDigits;
|
||||
/**
|
||||
* Rounding increment used when displaying this currency.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final byte roundingIncrement;
|
||||
|
||||
|
@ -275,6 +297,7 @@ public class CurrencyMetaInfo {
|
|||
* @param fractionDigits the fraction digits
|
||||
* @param roundingIncrement the rounding increment
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public CurrencyDigits(int fractionDigits, int roundingIncrement) {
|
||||
this.fractionDigits = (byte) fractionDigits;
|
||||
|
@ -294,17 +317,20 @@ public class CurrencyMetaInfo {
|
|||
* Represents a complete currency info record listing the region, currency, from and to dates,
|
||||
* and priority.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final class CurrencyInfo {
|
||||
/**
|
||||
* Region code where currency is used.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final String region;
|
||||
|
||||
/**
|
||||
* The three-letter ISO currency code.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final String code;
|
||||
|
||||
|
@ -312,6 +338,7 @@ public class CurrencyMetaInfo {
|
|||
* Date on which the currency was first officially used in the region. If there is no
|
||||
* date, this is Long.MIN_VALUE;
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final long from;
|
||||
|
||||
|
@ -319,6 +346,7 @@ public class CurrencyMetaInfo {
|
|||
* Date at which the currency stopped being officially used in the region. If there is
|
||||
* no date, this is Long.MAX_VALUE;
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final long to;
|
||||
|
||||
|
@ -327,6 +355,7 @@ public class CurrencyMetaInfo {
|
|||
* values are preferred (generally, this is a transition from an older to a newer
|
||||
* currency). Priorities within a single country are unique.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final short priority;
|
||||
|
||||
|
@ -338,6 +367,7 @@ public class CurrencyMetaInfo {
|
|||
* @param to end date in milliseconds
|
||||
* @param priority priority value, 0 is highest priority, increasing values are lower
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public CurrencyInfo(String region, String code, long from, long to, int priority) {
|
||||
this.region = region;
|
||||
|
@ -363,6 +393,7 @@ public class CurrencyMetaInfo {
|
|||
* @param filter the filter to control which currency info to return
|
||||
* @return the matching information
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public List<CurrencyInfo> currencyInfo(CurrencyFilter filter) {
|
||||
return Collections.emptyList();
|
||||
|
@ -376,6 +407,7 @@ public class CurrencyMetaInfo {
|
|||
* returns all currencies for which information is available.
|
||||
* @return the matching currency codes
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public List<String> currencies(CurrencyFilter filter) {
|
||||
return Collections.emptyList();
|
||||
|
@ -389,6 +421,7 @@ public class CurrencyMetaInfo {
|
|||
* returns all regions for which information is available.
|
||||
* @return the matching region codes
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public List<String> regions(CurrencyFilter filter) {
|
||||
return Collections.emptyList();
|
||||
|
@ -399,6 +432,7 @@ public class CurrencyMetaInfo {
|
|||
* @param isoCode the currency code
|
||||
* @return the CurrencyDigits
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public CurrencyDigits currencyDigits(String isoCode) {
|
||||
return defaultDigits;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -30,8 +30,7 @@ import com.ibm.icu.util.ULocale;
|
|||
* plural rule of the locale,
|
||||
* currency plural pattern of the locale.
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
|
||||
public class CurrencyPluralInfo implements Cloneable, Serializable {
|
||||
|
@ -39,8 +38,7 @@ public class CurrencyPluralInfo implements Cloneable, Serializable {
|
|||
|
||||
/**
|
||||
* Create a CurrencyPluralInfo object for the default locale.
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public CurrencyPluralInfo() {
|
||||
initialize(ULocale.getDefault());
|
||||
|
@ -49,8 +47,7 @@ public class CurrencyPluralInfo implements Cloneable, Serializable {
|
|||
/**
|
||||
* Create a CurrencyPluralInfo object for the given locale.
|
||||
* @param locale the locale
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public CurrencyPluralInfo(Locale locale) {
|
||||
initialize(ULocale.forLocale(locale));
|
||||
|
@ -59,8 +56,7 @@ public class CurrencyPluralInfo implements Cloneable, Serializable {
|
|||
/**
|
||||
* Create a CurrencyPluralInfo object for the given locale.
|
||||
* @param locale the locale
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public CurrencyPluralInfo(ULocale locale) {
|
||||
initialize(locale);
|
||||
|
@ -70,8 +66,7 @@ public class CurrencyPluralInfo implements Cloneable, Serializable {
|
|||
* Gets a CurrencyPluralInfo instance for the default locale.
|
||||
*
|
||||
* @return A CurrencyPluralInfo instance.
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static CurrencyPluralInfo getInstance() {
|
||||
return new CurrencyPluralInfo();
|
||||
|
@ -82,8 +77,7 @@ public class CurrencyPluralInfo implements Cloneable, Serializable {
|
|||
*
|
||||
* @param locale the locale.
|
||||
* @return A CurrencyPluralInfo instance.
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static CurrencyPluralInfo getInstance(Locale locale) {
|
||||
return new CurrencyPluralInfo(locale);
|
||||
|
@ -94,8 +88,7 @@ public class CurrencyPluralInfo implements Cloneable, Serializable {
|
|||
*
|
||||
* @param locale the locale.
|
||||
* @return A CurrencyPluralInfo instance.
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static CurrencyPluralInfo getInstance(ULocale locale) {
|
||||
return new CurrencyPluralInfo(locale);
|
||||
|
@ -105,8 +98,7 @@ public class CurrencyPluralInfo implements Cloneable, Serializable {
|
|||
* Gets plural rules of this locale, used for currency plural format
|
||||
*
|
||||
* @return plural rule
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public PluralRules getPluralRules() {
|
||||
return pluralRules;
|
||||
|
@ -118,8 +110,7 @@ public class CurrencyPluralInfo implements Cloneable, Serializable {
|
|||
*
|
||||
* @param pluralCount currency plural count
|
||||
* @return a currency plural pattern based on plural count
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public String getCurrencyPluralPattern(String pluralCount) {
|
||||
String currencyPluralPattern = pluralCountToCurrencyUnitPattern.get(pluralCount);
|
||||
|
@ -145,8 +136,7 @@ public class CurrencyPluralInfo implements Cloneable, Serializable {
|
|||
*
|
||||
* @return locale
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public ULocale getLocale() {
|
||||
return ulocale;
|
||||
|
@ -157,8 +147,7 @@ public class CurrencyPluralInfo implements Cloneable, Serializable {
|
|||
* and usually do not need to be changed.
|
||||
*
|
||||
* @param ruleDescription new plural rule description
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public void setPluralRules(String ruleDescription) {
|
||||
pluralRules = PluralRules.createRules(ruleDescription);
|
||||
|
@ -171,8 +160,7 @@ public class CurrencyPluralInfo implements Cloneable, Serializable {
|
|||
* @param pluralCount the plural count for which the currency pattern will
|
||||
* be overridden.
|
||||
* @param pattern the new currency plural pattern
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public void setCurrencyPluralPattern(String pluralCount, String pattern) {
|
||||
pluralCountToCurrencyUnitPattern.put(pluralCount, pattern);
|
||||
|
@ -183,8 +171,7 @@ public class CurrencyPluralInfo implements Cloneable, Serializable {
|
|||
* the defaults for the locale.
|
||||
*
|
||||
* @param loc the new locale to set
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public void setLocale(ULocale loc) {
|
||||
ulocale = loc;
|
||||
|
@ -194,8 +181,7 @@ public class CurrencyPluralInfo implements Cloneable, Serializable {
|
|||
/**
|
||||
* Standard override
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public Object clone() {
|
||||
try {
|
||||
|
@ -220,8 +206,7 @@ public class CurrencyPluralInfo implements Cloneable, Serializable {
|
|||
/**
|
||||
* Override equals
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public boolean equals(Object a) {
|
||||
if (a instanceof CurrencyPluralInfo) {
|
||||
|
|
|
@ -384,6 +384,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
|
|||
* not happen otherwise). For default behavior, use MATCH_NO_OPTIONS.
|
||||
* @return Best pattern matching the input skeleton (and options).
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public String getBestPattern(String skeleton, int options) {
|
||||
return getBestPattern(skeleton, null, options);
|
||||
|
@ -624,6 +625,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
|
|||
* not happen otherwise). For default behavior, use MATCH_NO_OPTIONS.
|
||||
* @return pattern adjusted to match the skeleton fields widths and subtypes.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public String replaceFieldTypes(String pattern, String skeleton, int options) {
|
||||
synchronized (this) { // synchronized since a getter must be thread-safe
|
||||
|
@ -834,16 +836,19 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
|
|||
|
||||
/**
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final int MATCH_NO_OPTIONS = 0;
|
||||
|
||||
/**
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final int MATCH_HOUR_FIELD_LENGTH = 1 << HOUR;
|
||||
|
||||
/**
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final int MATCH_ALL_FIELDS_LENGTH = (1 << TYPE_LIMIT) - 1;
|
||||
|
||||
|
|
|
@ -743,8 +743,7 @@ public class DecimalFormat extends NumberFormat {
|
|||
* @param symbols the set of symbols to be used
|
||||
* @param infoInput the information used for currency plural format, including currency plural patterns and plural rules.
|
||||
* @param style the decimal formatting style, it is one of the following values: NumberFormat.NUMBERSTYLE; NumberFormat.CURRENCYSTYLE; NumberFormat.PERCENTSTYLE; NumberFormat.SCIENTIFICSTYLE; NumberFormat.INTEGERSTYLE; NumberFormat.ISOCURRENCYSTYLE; NumberFormat.PLURALCURRENCYSTYLE;
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public DecimalFormat(String pattern, DecimalFormatSymbols symbols, CurrencyPluralInfo infoInput, int style) {
|
||||
CurrencyPluralInfo info = infoInput;
|
||||
|
@ -3352,8 +3351,7 @@ public class DecimalFormat extends NumberFormat {
|
|||
*
|
||||
* @return desired MathContext
|
||||
* @see #getMathContext
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public MathContext getMathContextICU() {
|
||||
return mathContext;
|
||||
|
@ -3364,8 +3362,7 @@ public class DecimalFormat extends NumberFormat {
|
|||
*
|
||||
* @return desired MathContext
|
||||
* @see #getMathContext
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public java.math.MathContext getMathContext() {
|
||||
try {
|
||||
|
@ -3382,8 +3379,7 @@ public class DecimalFormat extends NumberFormat {
|
|||
*
|
||||
* @param newValue desired MathContext
|
||||
* @see #getMathContext
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public void setMathContextICU(MathContext newValue) {
|
||||
mathContext = newValue;
|
||||
|
@ -3394,8 +3390,7 @@ public class DecimalFormat extends NumberFormat {
|
|||
*
|
||||
* @param newValue desired MathContext
|
||||
* @see #getMathContext
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public void setMathContext(java.math.MathContext newValue) {
|
||||
mathContext = new MathContext(newValue.getPrecision(), MathContext.SCIENTIFIC, false, (newValue
|
||||
|
@ -3439,8 +3434,7 @@ public class DecimalFormat extends NumberFormat {
|
|||
*
|
||||
* @return desired CurrencyPluralInfo
|
||||
* @see CurrencyPluralInfo
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public CurrencyPluralInfo getCurrencyPluralInfo() {
|
||||
try {
|
||||
|
@ -3456,8 +3450,7 @@ public class DecimalFormat extends NumberFormat {
|
|||
*
|
||||
* @param newInfo desired CurrencyPluralInfo
|
||||
* @see CurrencyPluralInfo
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public void setCurrencyPluralInfo(CurrencyPluralInfo newInfo) {
|
||||
currencyPluralInfo = (CurrencyPluralInfo) newInfo.clone();
|
||||
|
|
|
@ -16,23 +16,27 @@ import com.ibm.icu.util.ULocale;
|
|||
* more information on language, script, region, variant, key, and
|
||||
* values, see {@link com.ibm.icu.util.ULocale}.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public abstract class LocaleDisplayNames {
|
||||
/**
|
||||
* Enum used in {@link #getInstance(ULocale, DialectHandling)}.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public enum DialectHandling {
|
||||
/**
|
||||
* Use standard names when generating a locale name,
|
||||
* e.g. en_GB displays as 'English (United Kingdom)'.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
STANDARD_NAMES,
|
||||
/**
|
||||
* Use dialect names when generating a locale name,
|
||||
* e.g. en_GB displays as 'British English'.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
DIALECT_NAMES
|
||||
}
|
||||
|
@ -44,6 +48,7 @@ public abstract class LocaleDisplayNames {
|
|||
* @param locale the display locale
|
||||
* @return a LocaleDisplayNames instance
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static LocaleDisplayNames getInstance(ULocale locale) {
|
||||
return getInstance(locale, DialectHandling.STANDARD_NAMES);
|
||||
|
@ -56,6 +61,7 @@ public abstract class LocaleDisplayNames {
|
|||
* @param dialectHandling how to select names for locales
|
||||
* @return a LocaleDisplayNames instance
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static LocaleDisplayNames getInstance(ULocale locale, DialectHandling dialectHandling) {
|
||||
return LocaleDisplayNamesImpl.getInstance(locale, dialectHandling);
|
||||
|
@ -67,6 +73,7 @@ public abstract class LocaleDisplayNames {
|
|||
* locale passed to {@link #getInstance}.
|
||||
* @return the display locale
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public abstract ULocale getLocale();
|
||||
|
||||
|
@ -74,6 +81,7 @@ public abstract class LocaleDisplayNames {
|
|||
* Returns the dialect handling used in the display names.
|
||||
* @return the dialect handling enum
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public abstract DialectHandling getDialectHandling();
|
||||
|
||||
|
@ -83,6 +91,7 @@ public abstract class LocaleDisplayNames {
|
|||
* @param locale the locale whose display name to return
|
||||
* @return the display name of the provided locale
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public abstract String localeDisplayName(ULocale locale);
|
||||
|
||||
|
@ -91,6 +100,7 @@ public abstract class LocaleDisplayNames {
|
|||
* @param locale the locale whose display name to return
|
||||
* @return the display name of the provided locale
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public abstract String localeDisplayName(Locale locale);
|
||||
|
||||
|
@ -99,6 +109,7 @@ public abstract class LocaleDisplayNames {
|
|||
* @param localeId the id of the locale whose display name to return
|
||||
* @return the display name of the provided locale
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public abstract String localeDisplayName(String localeId);
|
||||
|
||||
|
@ -108,6 +119,7 @@ public abstract class LocaleDisplayNames {
|
|||
* @param lang the language code
|
||||
* @return the display name of the provided language code
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public abstract String languageDisplayName(String lang);
|
||||
|
||||
|
@ -116,6 +128,7 @@ public abstract class LocaleDisplayNames {
|
|||
* @param script the script code
|
||||
* @return the display name of the provided script code
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public abstract String scriptDisplayName(String script);
|
||||
|
||||
|
@ -125,6 +138,7 @@ public abstract class LocaleDisplayNames {
|
|||
* @param scriptCode the script code number
|
||||
* @return the display name of the provided script code
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public abstract String scriptDisplayName(int scriptCode);
|
||||
|
||||
|
@ -133,6 +147,7 @@ public abstract class LocaleDisplayNames {
|
|||
* @param region the region code
|
||||
* @return the display name of the provided region code
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public abstract String regionDisplayName(String region);
|
||||
|
||||
|
@ -141,6 +156,7 @@ public abstract class LocaleDisplayNames {
|
|||
* @param variant the variant string
|
||||
* @return the display name of the provided variant
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public abstract String variantDisplayName(String variant);
|
||||
|
||||
|
@ -149,6 +165,7 @@ public abstract class LocaleDisplayNames {
|
|||
* @param key the locale key name
|
||||
* @return the display name of the provided locale key
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public abstract String keyDisplayName(String key);
|
||||
|
||||
|
@ -158,6 +175,7 @@ public abstract class LocaleDisplayNames {
|
|||
* @param value the locale key's value
|
||||
* @return the display name of the provided value
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public abstract String keyValueDisplayName(String key, String value);
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 1996-2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 1996-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -166,48 +166,41 @@ public abstract class NumberFormat extends UFormat {
|
|||
|
||||
/**
|
||||
* Constants to specify normal number style of format.
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int NUMBERSTYLE = 0;
|
||||
/**
|
||||
* Constants to specify currency style of format which uses currency symbol
|
||||
* to represent currency, for example: "$3.00".
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int CURRENCYSTYLE = 1;
|
||||
/**
|
||||
* Constants to specify a style of format to display percent.
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int PERCENTSTYLE = 2;
|
||||
/**
|
||||
* Constants to specify a style of format to display scientific number.
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int SCIENTIFICSTYLE = 3;
|
||||
/**
|
||||
* Constants to specify a integer number style format.
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int INTEGERSTYLE = 4;
|
||||
/**
|
||||
* Constants to specify currency style of format which uses currency
|
||||
* ISO code to represent currency, for example: "USD3.00".
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int ISOCURRENCYSTYLE = 5;
|
||||
/**
|
||||
* Constants to specify currency style of format which uses currency
|
||||
* long name with plural format to represent currency, for example,
|
||||
* "3.00 US Dollars".
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int PLURALCURRENCYSTYLE = 6;
|
||||
|
||||
|
@ -538,8 +531,7 @@ public abstract class NumberFormat extends UFormat {
|
|||
/**
|
||||
* Returns a specific style number format for default locale.
|
||||
* @param style number format style
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public final static NumberFormat getInstance(int style) {
|
||||
return getInstance(ULocale.getDefault(), style);
|
||||
|
@ -549,8 +541,7 @@ public abstract class NumberFormat extends UFormat {
|
|||
* Returns a specific style number format for a specific locale.
|
||||
* @param inLocale the specific locale.
|
||||
* @param style number format style
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static NumberFormat getInstance(Locale inLocale, int style) {
|
||||
return getInstance(ULocale.forLocale(inLocale), style);
|
||||
|
@ -1243,8 +1234,7 @@ public abstract class NumberFormat extends UFormat {
|
|||
* PERCENTSTYLE, SCIENTIFICSTYLE,
|
||||
* INTEGERSTYLE,
|
||||
* ISOCURRENCYSTYLE, PLURALCURRENCYSTYLE,
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static NumberFormat getInstance(ULocale desiredLocale, int choice) {
|
||||
if (choice < NUMBERSTYLE || choice > PLURALCURRENCYSTYLE) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -28,14 +28,14 @@ import com.ibm.icu.impl.SimpleCache;
|
|||
* as Hebrew numbering or Chinese numbering.
|
||||
*
|
||||
* @author John Emmons
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
class NumberingSystem {
|
||||
|
||||
/**
|
||||
* Default constructor. Returns a numbering system that uses the Western decimal
|
||||
* digits 0 through 9.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public NumberingSystem() {
|
||||
radix = 10;
|
||||
|
@ -55,7 +55,7 @@ class NumberingSystem {
|
|||
* systems, the string contains the name of the RBNF ruleset in the locale's
|
||||
* NumberingSystemRules section that will be used to format numbers using
|
||||
* this numbering system.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static NumberingSystem getInstance(int radix_in, boolean isAlgorithmic_in, String desc_in ) {
|
||||
if ( radix_in < 2 ) {
|
||||
|
@ -76,7 +76,7 @@ class NumberingSystem {
|
|||
|
||||
/**
|
||||
* Returns the default numbering system for the specified locale.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static NumberingSystem getInstance(Locale inLocale) {
|
||||
return getInstance(ULocale.forLocale(inLocale));
|
||||
|
@ -84,7 +84,7 @@ class NumberingSystem {
|
|||
|
||||
/**
|
||||
* Returns the default numbering system for the specified ULocale.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static NumberingSystem getInstance(ULocale locale) {
|
||||
|
||||
|
@ -131,7 +131,7 @@ class NumberingSystem {
|
|||
|
||||
/**
|
||||
* Returns the default numbering system for the default locale.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static NumberingSystem getInstance() {
|
||||
return getInstance(ULocale.getDefault());
|
||||
|
@ -145,7 +145,7 @@ class NumberingSystem {
|
|||
* @param name The name of the desired numbering system. Numbering system
|
||||
* names often correspond with the name of the script they are associated
|
||||
* with. For example, "thai" for Thai digits, "hebr" for Hebrew numerals.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static NumberingSystem getInstanceByName(String name) {
|
||||
int radix;
|
||||
|
@ -183,7 +183,7 @@ class NumberingSystem {
|
|||
/**
|
||||
* Returns a string array containing a list of the names of numbering systems
|
||||
* currently known to ICU.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static String [] getAvailableNames() {
|
||||
|
||||
|
@ -209,7 +209,7 @@ class NumberingSystem {
|
|||
* 1. It must only contain characters that are decimal digits as defined by Unicode.
|
||||
* 2. It must contain characters that are contiguous code points.
|
||||
* 3. Digits must be in Unicode's basic multilingual plane.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static boolean isValidDigitString(String str) {
|
||||
|
||||
|
@ -237,7 +237,7 @@ class NumberingSystem {
|
|||
|
||||
/**
|
||||
* Returns the radix of the current numbering system.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public int getRadix() {
|
||||
return radix;
|
||||
|
@ -251,7 +251,7 @@ class NumberingSystem {
|
|||
* systems, the string contains the name of the RBNF ruleset in the locale's
|
||||
* NumberingSystemRules section that will be used to format numbers using
|
||||
* this numbering system.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public String getDescription() {
|
||||
return desc;
|
||||
|
@ -262,7 +262,7 @@ class NumberingSystem {
|
|||
* the numbering system is algorithmic and uses an RBNF formatter to
|
||||
* format numerals. If false, the numbering system is numeric and
|
||||
* uses a fixed set of digits.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public boolean isAlgorithmic() {
|
||||
return algorithmic;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2007-2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2007-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -409,8 +409,7 @@ public class PluralFormat extends UFormat {
|
|||
* Returns the pattern for this PluralFormat.
|
||||
*
|
||||
* @return the pattern string
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public String toPattern() {
|
||||
return pattern;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -11,6 +11,7 @@ package com.ibm.icu.text;
|
|||
* Used by RBNF to leniently parse a string.
|
||||
*
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public interface RbnfLenientScanner {
|
||||
/**
|
||||
|
@ -20,6 +21,7 @@ public interface RbnfLenientScanner {
|
|||
* @return true if the string is empty or consists entirely of
|
||||
* characters that are ignorable.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
boolean allIgnorable(String s);
|
||||
|
||||
|
@ -34,6 +36,7 @@ public interface RbnfLenientScanner {
|
|||
* @param prefix The text we're hoping to see at the beginning of "str"
|
||||
* @return the number of characters in "str" that were matched
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public int prefixLength(String str, String prefix);
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -13,6 +13,7 @@ import com.ibm.icu.util.ULocale;
|
|||
* A provider for an RbnfLenientScanner.
|
||||
*
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public interface RbnfLenientScannerProvider {
|
||||
/**
|
||||
|
@ -23,6 +24,7 @@ public interface RbnfLenientScannerProvider {
|
|||
* @param extras extra collation rules
|
||||
* @return the lenient scanner, or null
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
RbnfLenientScanner get(ULocale locale, String extras);
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 1996-2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 1996-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -509,8 +509,7 @@ public class RuleBasedNumberFormat extends NumberFormat {
|
|||
|
||||
/**
|
||||
* Selector code that tells the constructor to create a numbering system formatter
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int NUMBERING_SYSTEM = 4;
|
||||
|
||||
|
@ -1274,6 +1273,7 @@ public class RuleBasedNumberFormat extends NumberFormat {
|
|||
* @see #setLenientParseMode
|
||||
* @see #getLenientScannerProvider
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public void setLenientScannerProvider(RbnfLenientScannerProvider scannerProvider) {
|
||||
this.scannerProvider = scannerProvider;
|
||||
|
@ -1286,6 +1286,7 @@ public class RuleBasedNumberFormat extends NumberFormat {
|
|||
*
|
||||
* @see #setLenientScannerProvider
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public RbnfLenientScannerProvider getLenientScannerProvider() {
|
||||
// there's a potential race condition if two threads try to set/get the scanner at
|
||||
|
|
|
@ -150,6 +150,7 @@ import java.util.Map;
|
|||
* </pre>
|
||||
*
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
|
||||
public class SelectFormat extends Format{
|
||||
|
@ -173,6 +174,7 @@ public class SelectFormat extends Format{
|
|||
* for values to which no other form in the rule applies. It
|
||||
* can additionally be assigned rules of its own.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
private static final String KEYWORD_OTHER = "other";
|
||||
|
||||
|
@ -197,6 +199,7 @@ public class SelectFormat extends Format{
|
|||
/**
|
||||
* Creates a new <code>SelectFormat</code>
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public SelectFormat() {
|
||||
init();
|
||||
|
@ -206,6 +209,7 @@ public class SelectFormat extends Format{
|
|||
* Creates a new <code>SelectFormat</code> for a given pattern string.
|
||||
* @param pattern the pattern for this <code>SelectFormat</code>.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public SelectFormat(String pattern) {
|
||||
init();
|
||||
|
@ -280,6 +284,7 @@ public class SelectFormat extends Format{
|
|||
* @param pattern the pattern for this select format.
|
||||
* @throws IllegalArgumentException
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public void applyPattern(String pattern) {
|
||||
parsedValues = null;
|
||||
|
@ -412,6 +417,7 @@ public class SelectFormat extends Format{
|
|||
*
|
||||
* @return the pattern string
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public String toPattern() {
|
||||
return pattern;
|
||||
|
@ -424,6 +430,7 @@ public class SelectFormat extends Format{
|
|||
* @return the string containing the formatted select message.
|
||||
* @throws IllegalArgumentException
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final String format(String keyword) {
|
||||
//Check for the validity of the keyword
|
||||
|
@ -455,6 +462,7 @@ public class SelectFormat extends Format{
|
|||
* @return the string buffer passed in as toAppendTo, with formatted text
|
||||
* appended.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public StringBuffer format(Object keyword, StringBuffer toAppendTo,
|
||||
FieldPosition pos) {
|
||||
|
@ -475,6 +483,7 @@ public class SelectFormat extends Format{
|
|||
* @return nothing because this method is not yet implemented.
|
||||
* @throws UnsupportedOperationException
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public Object parseObject(String source, ParsePosition pos) {
|
||||
throw new UnsupportedOperationException();
|
||||
|
@ -506,6 +515,7 @@ public class SelectFormat extends Format{
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public boolean equals(Object obj) {
|
||||
if (!(obj instanceof SelectFormat)) {
|
||||
|
@ -518,6 +528,7 @@ public class SelectFormat extends Format{
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public int hashCode() {
|
||||
if (pattern != null) {
|
||||
|
@ -532,6 +543,7 @@ public class SelectFormat extends Format{
|
|||
* The result string includes the class name and
|
||||
* the pattern string returned by <code>toPattern()</code>.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public String toString() {
|
||||
StringBuffer buf = new StringBuffer();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 1996-2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 1996-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -410,8 +410,7 @@ public class SimpleDateFormat extends DateFormat {
|
|||
|
||||
/**
|
||||
* Construct a SimpleDateFormat using the given pattern , override and locale.
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public SimpleDateFormat(String pattern, String override, ULocale loc)
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2003-2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2003-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -73,104 +73,91 @@ public final class StringPrep {
|
|||
/**
|
||||
* Profile type: RFC3491 Nameprep
|
||||
* @see #getInstance(int)
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int RFC3491_NAMEPREP = 0;
|
||||
|
||||
/**
|
||||
* Profile type: RFC3530 nfs4_cs_prep
|
||||
* @see #getInstance(int)
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int RFC3530_NFS4_CS_PREP = 1;
|
||||
|
||||
/**
|
||||
* Profile type: RFC3530 nfs4_cs_prep with case insensitive option
|
||||
* @see #getInstance(int)
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int RFC3530_NFS4_CS_PREP_CI = 2;
|
||||
|
||||
/**
|
||||
* Profile type: RFC3530 nfs4_cis_prep
|
||||
* @see #getInstance(int)
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int RFC3530_NFS4_CIS_PREP = 3;
|
||||
|
||||
/**
|
||||
* Profile type: RFC3530 nfs4_mixed_prep for prefix
|
||||
* @see #getInstance(int)
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int RFC3530_NFS4_MIXED_PREP_PREFIX = 4;
|
||||
|
||||
/**
|
||||
* Profile type: RFC3530 nfs4_mixed_prep for suffix
|
||||
* @see #getInstance(int)
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int RFC3530_NFS4_MIXED_PREP_SUFFIX = 5;
|
||||
|
||||
/**
|
||||
* Profile type: RFC3722 iSCSI
|
||||
* @see #getInstance(int)
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int RFC3722_ISCSI = 6;
|
||||
|
||||
/**
|
||||
* Profile type: RFC3920 XMPP Nodeprep
|
||||
* @see #getInstance(int)
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int RFC3920_NODEPREP = 7;
|
||||
|
||||
/**
|
||||
* Profile type: RFC3920 XMPP Resourceprep
|
||||
* @see #getInstance(int)
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int RFC3920_RESOURCEPREP = 8;
|
||||
|
||||
/**
|
||||
* Profile type: RFC4011 Policy MIB Stringprep
|
||||
* @see #getInstance(int)
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int RFC4011_MIB = 9;
|
||||
|
||||
/**
|
||||
* Profile type: RFC4013 SASLprep
|
||||
* @see #getInstance(int)
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int RFC4013_SASLPREP = 10;
|
||||
|
||||
/**
|
||||
* Profile type: RFC4505 trace
|
||||
* @see #getInstance(int)
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int RFC4505_TRACE = 11;
|
||||
|
||||
/**
|
||||
* Profile type: RFC4518 LDAP
|
||||
* @see #getInstance(int)
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int RFC4518_LDAP = 12;
|
||||
|
||||
|
@ -178,8 +165,7 @@ public final class StringPrep {
|
|||
* Profile type: RFC4518 LDAP for case ignore, numeric and stored prefix
|
||||
* matching rules
|
||||
* @see #getInstance(int)
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int RFC4518_LDAP_CI = 13;
|
||||
|
||||
|
@ -329,8 +315,7 @@ public final class StringPrep {
|
|||
* Gets a StringPrep instance for the specified profile
|
||||
*
|
||||
* @param profile The profile passed to find the StringPrep instance.
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static StringPrep getInstance(int profile) {
|
||||
if (profile < 0 || profile > MAX_PROFILE) {
|
||||
|
@ -624,8 +609,7 @@ public final class StringPrep {
|
|||
*
|
||||
* @return String A String containing the output
|
||||
* @throws StringPrepParseException An exception when parsing or preparing a string is invalid.
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public String prepare(String src, int options)
|
||||
throws StringPrepParseException{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
**************************************************************************
|
||||
* Copyright (C) 2008-2009, Google, International Business Machines
|
||||
* Copyright (C) 2008-2010, Google, International Business Machines
|
||||
* Corporationand others. All Rights Reserved.
|
||||
**************************************************************************
|
||||
*/
|
||||
|
@ -59,15 +59,13 @@ public class TimeUnitFormat extends MeasureFormat {
|
|||
/**
|
||||
* Constant for full name style format.
|
||||
* For example, the full name for "hour" in English is "hour" or "hours".
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int FULL_NAME = 0;
|
||||
/**
|
||||
* Constant for abbreviated name style format.
|
||||
* For example, the abbreviated name for "hour" in English is "hr" or "hrs".
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int ABBREVIATED_NAME = 1;
|
||||
|
||||
|
@ -126,8 +124,7 @@ public class TimeUnitFormat extends MeasureFormat {
|
|||
* @param style format style, either FULL_NAME or ABBREVIATED_NAME style.
|
||||
* @throws IllegalArgumentException if the style is not FULL_NAME or
|
||||
* ABBREVIATED_NAME style.
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public TimeUnitFormat(ULocale locale, int style) {
|
||||
if (style < FULL_NAME || style >= TOTAL_STYLES) {
|
||||
|
@ -141,8 +138,7 @@ public class TimeUnitFormat extends MeasureFormat {
|
|||
/**
|
||||
* Create TimeUnitFormat given a Locale and a formatting style: full or
|
||||
* abbreviated.
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public TimeUnitFormat(Locale locale, int style) {
|
||||
this(ULocale.forLocale(locale), style);
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, Google, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
********************************************************************************
|
||||
* Copyright (C) 2009-2010, Google, International Business Machines Corporation *
|
||||
* and others. All Rights Reserved. *
|
||||
********************************************************************************
|
||||
*/
|
||||
package com.ibm.icu.text;
|
||||
|
||||
|
@ -10,8 +10,9 @@ package com.ibm.icu.text;
|
|||
* Provide an interface for Transforms that focuses just on the transformation of the text.
|
||||
* APIs that take Transliterator or StringTransform, but only depend on the transformation should use this interface in the API instead.
|
||||
*
|
||||
* @draft ICU 4.4
|
||||
* @author markdavis
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -20,7 +21,8 @@ public interface Transform<S,D> {
|
|||
* Transform the input in some way, to be determined by the subclass.
|
||||
* @param source to be transformed (eg lowercased)
|
||||
* @return result
|
||||
* @stable ICU 3.8
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public D transform(S source);
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 1996-2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 1996-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -356,8 +356,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
|
|||
* In each pair (..., si, ei, ...) it must be true that si <= ei
|
||||
* Between adjacent pairs (...ei, sj...), it must be true that ei+1 < sj
|
||||
* @param pairs pairs of character representing ranges
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public UnicodeSet(int... pairs) {
|
||||
if ((pairs.length & 1) != 0) {
|
||||
|
@ -1086,8 +1085,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
|
|||
* @param start The index of where to start on adding all characters.
|
||||
* @param end The index of where to end on adding all characters.
|
||||
* @return a reference to this object
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public UnicodeSet addAll(int start, int end) {
|
||||
checkFrozen();
|
||||
|
@ -1323,8 +1321,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
|
|||
/**
|
||||
* Remove all strings from this UnicodeSet
|
||||
* @return this object, for chaining
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public final UnicodeSet removeAllStrings() {
|
||||
checkFrozen();
|
||||
|
@ -2763,8 +2760,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
|
|||
* Uses standard naming convention.
|
||||
* @param source collection to add into
|
||||
* @return a reference to this object
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public UnicodeSet addAll(Collection<?> source) {
|
||||
checkFrozen();
|
||||
|
@ -3856,8 +3852,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
|
|||
/**
|
||||
* Returns a string iterator. Uses the same order of iteration as {@link UnicodeSetIterator}.
|
||||
* @see java.util.Set#iterator()
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public Iterator<String> iterator() {
|
||||
return new UnicodeSetIterator2(this);
|
||||
|
@ -3942,8 +3937,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
|
|||
|
||||
/**
|
||||
* @see #containsAll(com.ibm.icu.text.UnicodeSet)
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public boolean containsAll(Collection<String> collection) {
|
||||
for (String o : collection) {
|
||||
|
@ -3956,8 +3950,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
|
|||
|
||||
/**
|
||||
* @see #containsNone(com.ibm.icu.text.UnicodeSet)
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public boolean containsNone(Collection<String> collection) {
|
||||
for (String o : collection) {
|
||||
|
@ -3970,8 +3963,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
|
|||
|
||||
/**
|
||||
* @see #containsAll(com.ibm.icu.text.UnicodeSet)
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public final boolean containsSome(Collection<String> collection) {
|
||||
return !containsNone(collection);
|
||||
|
@ -3979,8 +3971,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
|
|||
|
||||
/**
|
||||
* @see #addAll(com.ibm.icu.text.UnicodeSet)
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public UnicodeSet addAll(String... collection) {
|
||||
checkFrozen();
|
||||
|
@ -3993,8 +3984,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
|
|||
|
||||
/**
|
||||
* @see #removeAll(com.ibm.icu.text.UnicodeSet)
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public UnicodeSet removeAll(Collection<String> collection) {
|
||||
checkFrozen();
|
||||
|
@ -4006,8 +3996,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
|
|||
|
||||
/**
|
||||
* @see #retainAll(com.ibm.icu.text.UnicodeSet)
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public UnicodeSet retainAll(Collection<String> collection) {
|
||||
checkFrozen();
|
||||
|
@ -4024,8 +4013,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
|
|||
* Compares UnicodeSets, where shorter come first, and otherwise lexigraphically
|
||||
* (according to the comparison of the first characters that differ).
|
||||
* @see java.lang.Comparable#compareTo(java.lang.Object)
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public int compareTo(UnicodeSet o) {
|
||||
return compareTo(o, ComparisonStyle.SHORTER_FIRST);
|
||||
|
@ -4033,8 +4021,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
|
|||
/**
|
||||
* Compares UnicodeSets, in three different ways.
|
||||
* @see java.lang.Comparable#compareTo(java.lang.Object)
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public int compareTo(UnicodeSet o, ComparisonStyle style) {
|
||||
if (style != ComparisonStyle.LEXICOGRAPHIC) {
|
||||
|
@ -4069,8 +4056,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
|
|||
|
||||
/* (non-Javadoc)
|
||||
* @see java.lang.Comparable#compareTo(java.lang.Object)
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public int compareTo(Iterable<String> other) {
|
||||
return compare(this, other);
|
||||
|
@ -4081,8 +4067,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
|
|||
* Same results as turning the code point into a string (with the [ugly] new StringBuilder().appendCodePoint(codepoint).toString())
|
||||
* and comparing, but much faster (no object creation).
|
||||
* Note that this (=String) order is UTF-16 order -- *not* code point order.
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static int compare(String string, int codePoint) {
|
||||
if (codePoint < Character.MIN_CODE_POINT || codePoint > Character.MAX_CODE_POINT) {
|
||||
|
@ -4122,8 +4107,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
|
|||
* Utility to compare a string to a code point.
|
||||
* Same results as turning the code point into a string and comparing, but much faster (no object creation).
|
||||
* Actually, there is one difference; a null compares as less.
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static int compare(int codepoint, String a) {
|
||||
return -compare(a, codepoint);
|
||||
|
@ -4173,8 +4157,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
|
|||
|
||||
/**
|
||||
* Utility for adding the contents of an iterable to a collection.
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static <T, U extends Collection<T>> U addAllTo(Iterable<T> source, U target) {
|
||||
for (T item : source) {
|
||||
|
@ -4185,8 +4168,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
|
|||
|
||||
/**
|
||||
* Utility for adding the contents of an iterable to a collection.
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static <T> T[] addAllTo(Iterable<T> source, T[] target) {
|
||||
int i = 0;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1996-2009, International Business Machines
|
||||
* Copyright (C) 1996-2010, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*/
|
||||
|
||||
|
@ -934,6 +934,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
|
|||
* Field indicating whether or not the current month is a leap month.
|
||||
* Should have a value of 0 for non-leap months, and 1 for leap months.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final int IS_LEAP_MONTH = 22;
|
||||
|
||||
|
@ -1908,8 +1909,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
|
|||
* with the given locale in preferred order. Otherwise,
|
||||
* it will return all the available values for the locale.
|
||||
* @return an array of string values for the given key and the locale.
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final String[] getKeywordValuesForLocale(String key, ULocale locale, boolean commonlyUsed) {
|
||||
// Resolve region
|
||||
|
|
|
@ -79,8 +79,7 @@ public class Currency extends MeasureUnit implements Serializable {
|
|||
* Selector for getName() indicating the plural long name for a
|
||||
* currency, such as "US dollar" for USD in "1 US dollar",
|
||||
* and "US dollars" for USD in "2 US dollars".
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final int PLURAL_LONG_NAME = 2;
|
||||
|
||||
|
@ -314,8 +313,7 @@ public class Currency extends MeasureUnit implements Serializable {
|
|||
* Otherwise returns all values.
|
||||
* @return an array of values for the given key and the locale. If there is no data, the
|
||||
* array will be empty.
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static final String[] getKeywordValuesForLocale(String key, ULocale locale,
|
||||
boolean commonlyUsed) {
|
||||
|
@ -479,8 +477,7 @@ public class Currency extends MeasureUnit implements Serializable {
|
|||
/**
|
||||
* Returns the display name for the given currency in the given locale.
|
||||
* This is a convenience overload of getName(ULocale, int, String, boolean[]);
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public String getName(Locale locale, int nameStyle, String pluralCount,
|
||||
boolean[] isChoiceFormat) {
|
||||
|
@ -509,8 +506,7 @@ public class Currency extends MeasureUnit implements Serializable {
|
|||
* in isChoiceFormat is always false.
|
||||
* @throws IllegalArgumentException if the nameStyle is not SYMBOL_NAME,
|
||||
* LONG_NAME, or PLURAL_LONG_NAME.
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public String getName(ULocale locale, int nameStyle, String pluralCount,
|
||||
boolean[] isChoiceFormat) {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
****************************************************************************************
|
||||
* Copyright (C) 2009, Google, Inc.; International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
****************************************************************************************
|
||||
**************************************************************************************
|
||||
* Copyright (C) 2009-2010, Google, Inc.; International Business Machines Corporation *
|
||||
* and others. All Rights Reserved. *
|
||||
**************************************************************************************
|
||||
*/
|
||||
package com.ibm.icu.util;
|
||||
|
||||
|
@ -309,8 +309,7 @@ public final class LocaleData {
|
|||
/**
|
||||
* Returns LocaleDisplayPattern for this locale, e.g., {0}({1})
|
||||
* @return locale display pattern as a String.
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public String getLocaleDisplayPattern() {
|
||||
ICUResourceBundle locDispBundle = (ICUResourceBundle) langBundle.get(LOCALE_DISPLAY_PATTERN);
|
||||
|
@ -321,8 +320,7 @@ public final class LocaleData {
|
|||
/**
|
||||
* Returns LocaleDisplaySeparator for this locale.
|
||||
* @return locale display separator as a char.
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public String getLocaleSeparator() {
|
||||
ICUResourceBundle locDispBundle = (ICUResourceBundle) langBundle.get(LOCALE_DISPLAY_PATTERN);
|
||||
|
@ -334,8 +332,7 @@ public final class LocaleData {
|
|||
|
||||
/**
|
||||
* Returns the current CLDR version
|
||||
* @draft ICU 4.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
* @stable ICU 4.2
|
||||
*/
|
||||
public static VersionInfo getCLDRVersion() {
|
||||
// fetching this data should be idempotent.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
****************************************************************************************
|
||||
* Copyright (C) 2009, Google, Inc.; International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
* Copyright (C) 2009-2010, Google, Inc.; International Business Machines Corporation *
|
||||
* and others. All Rights Reserved. *
|
||||
****************************************************************************************
|
||||
*/
|
||||
package com.ibm.icu.util;
|
||||
|
@ -41,6 +41,7 @@ import com.ibm.icu.impl.Row.R3;
|
|||
*
|
||||
* @author markdavis@google.com
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public class LocaleMatcher {
|
||||
private static final boolean DEBUG = false;
|
||||
|
@ -64,6 +65,8 @@ public class LocaleMatcher {
|
|||
* of the page.
|
||||
*
|
||||
* @param languagePriorityList weighted list
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public LocaleMatcher(LocalePriorityList languagePriorityList) {
|
||||
this(languagePriorityList, defaultWritten);
|
||||
|
@ -74,6 +77,8 @@ public class LocaleMatcher {
|
|||
* language is the default.
|
||||
*
|
||||
* @param languagePriorityListString String form of LanguagePriorityList
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public LocaleMatcher(String languagePriorityListString) {
|
||||
this(LocalePriorityList.add(languagePriorityListString).build());
|
||||
|
@ -84,6 +89,8 @@ public class LocaleMatcher {
|
|||
* @internal
|
||||
* @param languagePriorityList LocalePriorityList to match
|
||||
* @param matcherData Internal matching data
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public LocaleMatcher(LocalePriorityList languagePriorityList, LanguageMatcherData matcherData) {
|
||||
this.matcherData = matcherData;
|
||||
|
@ -105,6 +112,8 @@ public class LocaleMatcher {
|
|||
* @param supported Supported locale
|
||||
* @param supportedMax Maximized locale (using likely subtags)
|
||||
* @return value between 0 and 1, inclusive.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public double match(ULocale desired, ULocale desiredMax, ULocale supported, ULocale supportedMax) {
|
||||
return matcherData.match(desired, desiredMax, supported, supportedMax);
|
||||
|
@ -116,6 +125,8 @@ public class LocaleMatcher {
|
|||
* TODO Get the data from CLDR, use Java conventions.
|
||||
* @param ulocale language/locale code
|
||||
* @return ULocale with remapped subtags.
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public ULocale canonicalize(ULocale ulocale) {
|
||||
String lang = ulocale.getLanguage();
|
||||
|
@ -139,6 +150,8 @@ public class LocaleMatcher {
|
|||
*
|
||||
* @param languageList list to match
|
||||
* @return best matching language code
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public ULocale getBestMatch(LocalePriorityList languageList) {
|
||||
double bestWeight = 0;
|
||||
|
@ -162,6 +175,8 @@ public class LocaleMatcher {
|
|||
*
|
||||
* @param languageList String form of language priority list
|
||||
* @return best matching language code
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public ULocale getBestMatch(String languageList) {
|
||||
return getBestMatch(LocalePriorityList.add(languageList).build());
|
||||
|
@ -172,6 +187,8 @@ public class LocaleMatcher {
|
|||
*
|
||||
* @param ulocale locale/language code to match
|
||||
* @return best matching language code
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public ULocale getBestMatch(ULocale ulocale) {
|
||||
return getBestMatchInternal(ulocale).get0();
|
||||
|
@ -456,6 +473,7 @@ public class LocaleMatcher {
|
|||
ScoreData scriptScores = new ScoreData(Level.script);
|
||||
ScoreData regionScores = new ScoreData(Level.region);
|
||||
|
||||
/** @internal */
|
||||
public double match(ULocale a, ULocale aMax, ULocale b, ULocale bMax) {
|
||||
double diff = 0;
|
||||
diff += languageScores.getScore(a, aMax, a.getLanguage(), aMax.getLanguage(), b, bMax, b.getLanguage(), bMax.getLanguage());
|
||||
|
@ -489,10 +507,11 @@ public class LocaleMatcher {
|
|||
private LanguageMatcherData addDistance(String desired, String supported, int percent) {
|
||||
return addDistance(desired, supported, percent, false, null);
|
||||
}
|
||||
/** @internal */
|
||||
public LanguageMatcherData addDistance(String desired, String supported, int percent, String comment) {
|
||||
return addDistance(desired, supported, percent, false, comment);
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
public LanguageMatcherData addDistance(String desired, String supported, int percent, boolean oneway) {
|
||||
return addDistance(desired, supported, percent, oneway, null);
|
||||
}
|
||||
|
@ -554,8 +573,8 @@ public class LocaleMatcher {
|
|||
return this;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.ibm.icu.util.Freezable#cloneAsThawed()
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public LanguageMatcherData cloneAsThawed() {
|
||||
LanguageMatcherData result;
|
||||
|
@ -573,10 +592,16 @@ public class LocaleMatcher {
|
|||
|
||||
private boolean frozen = false;
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public LanguageMatcherData freeze() {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public boolean isFrozen() {
|
||||
return frozen;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* @(#)TimeZone.java 1.51 00/01/19
|
||||
*
|
||||
* Copyright (C) 1996-2009, International Business Machines
|
||||
* Copyright (C) 1996-2010, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*/
|
||||
|
||||
|
@ -103,6 +103,7 @@ abstract public class TimeZone implements Serializable, Cloneable {
|
|||
/**
|
||||
* A logger for TimeZone. Will be null if logging is not on by way of system property: "icu4j.debug.logging"
|
||||
* @draft ICU 4.4
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static ICULogger TimeZoneLogger = ICULogger.getICULogger(TimeZone.class.getName());
|
||||
|
||||
|
@ -153,7 +154,8 @@ abstract public class TimeZone implements Serializable, Cloneable {
|
|||
* a short generic name, such as "PT."
|
||||
* @see #LONG_GENERIC
|
||||
* @draft ICU 4.4
|
||||
*/
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final int SHORT_GENERIC = 2;
|
||||
|
||||
/**
|
||||
|
@ -161,7 +163,8 @@ abstract public class TimeZone implements Serializable, Cloneable {
|
|||
* a long generic name, such as "Pacific Time."
|
||||
* @see #SHORT_GENERIC
|
||||
* @draft ICU 4.4
|
||||
*/
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final int LONG_GENERIC = 3;
|
||||
|
||||
/**
|
||||
|
@ -169,7 +172,8 @@ abstract public class TimeZone implements Serializable, Cloneable {
|
|||
* a short name derived from the timezone's offset, such as "-0800."
|
||||
* @see #LONG_GMT
|
||||
* @draft ICU 4.4
|
||||
*/
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final int SHORT_GMT = 4;
|
||||
|
||||
/**
|
||||
|
@ -177,16 +181,17 @@ abstract public class TimeZone implements Serializable, Cloneable {
|
|||
* a long name derived from the timezone's offset, such as "GMT-08:00."
|
||||
* @see #SHORT_GMT
|
||||
* @draft ICU 4.4
|
||||
*/
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final int LONG_GMT = 5;
|
||||
|
||||
/**
|
||||
* A style specifier for <code>getDisplayName()</code> indicating
|
||||
* a short name derived from the timezone's short standard or daylight
|
||||
* timezone name ignoring commonlyUsed, such as "PDT."
|
||||
* @see #GENERIC_LOCATION
|
||||
* @draft ICU 4.4
|
||||
*/
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
|
||||
public static final int SHORT_COMMONLY_USED = 6;
|
||||
|
||||
|
@ -194,12 +199,11 @@ abstract public class TimeZone implements Serializable, Cloneable {
|
|||
* A style specifier for <code>getDisplayName()</code> indicating
|
||||
* a long name derived from the timezone's fallback name, such as
|
||||
* "United States (Los Angeles)."
|
||||
* @see #SHORT_COMMONLY_USED
|
||||
* @draft ICU 4.4
|
||||
*/
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final int GENERIC_LOCATION = 7;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Cache to hold the SimpleDateFormat objects for a Locale.
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 1996-2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 1996-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -121,7 +121,7 @@ public final class VersionInfo implements Comparable<VersionInfo>
|
|||
|
||||
/**
|
||||
* Unicode 5.2 version
|
||||
* @draft ICU 4.4
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
public static final VersionInfo UNICODE_5_2;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue