/**
*******************************************************************************
-* Copyright (C) 2006-2012, International Business Machines Corporation and *
+* Copyright (C) 2006-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected static final int EXT_MAX_BYTES = 0x1f;
/* store previous UChars/chars to continue partial matches */
/**
*******************************************************************************
-* Copyright (C) 2006-2012, International Business Machines Corporation and *
+* Copyright (C) 2006-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final int ROUNDTRIP_AND_FALLBACK_SET =1;
-
+
//} UConverterUnicodeSet;
/**
/**
*******************************************************************************
-* Copyright (C) 2006-2013, International Business Machines Corporation and *
+* Copyright (C) 2006-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final String getICUCanonicalName(String enc)
throws UnsupportedCharsetException{
String canonicalName = null;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static String getJavaCanonicalName(String charsetName){
/*
If a charset listed in the IANA Charset Registry is supported by an implementation
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
private static final String[] getAliases(String encName)throws IOException{
String[] ret = null;
int aliasNum = 0;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final String[] getAvailableNames(){
CharsetProviderICU provider = new CharsetProviderICU();
HashMap<Charset, String> map = new HashMap<Charset, String>();
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final String[] getAllNames(){
int num = UConverterAlias.countAvailable();
String[] names = new String[num];
* @internal
* @deprecated This API is ICU internal, only for testing.
*/
+ @Deprecated
public static Collection<String> getFirstCharactersInScripts() {
return HACK_FIRST_CHARS_IN_SCRIPTS;
}
/**
*******************************************************************************
-* Copyright (C) 1996-2013, International Business Machines Corporation and *
+* Copyright (C) 1996-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public int hashCode() {
assert false : "hashCode not designed";
return 42;
/**
*******************************************************************************
-* Copyright (C) 1996-2012, International Business Machines Corporation and *
+* Copyright (C) 1996-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public Collator setStrength2(int newStrength)
{
setStrength(newStrength);
* @internal
* @deprecated This API is ICU internal only.
*/
+@Deprecated
public class RbnfScannerProviderImpl implements RbnfLenientScannerProvider {
private static final boolean DEBUG = ICUDebug.enabled("rbnf");
private Map<String, RbnfLenientScanner> cache;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public RbnfScannerProviderImpl() {
cache = new HashMap<String, RbnfLenientScanner>();
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public RbnfLenientScanner get(ULocale locale, String extras) {
RbnfLenientScanner result = null;
String key = locale.toString() + "/" + extras;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected RbnfLenientScanner createScanner(ULocale locale, String extras) {
RuleBasedCollator collator = null;
try {
/**
*******************************************************************************
- * Copyright (C) 1996-2013, International Business Machines Corporation and
+ * Copyright (C) 1996-2014, International Business Machines Corporation and
* others. All Rights Reserved.
*******************************************************************************
*/
* @see #isHiraganaQuaternary
* @deprecated ICU 50 Implementation detail, cannot be set via API, might be removed from implementation.
*/
+ @Deprecated
public void setHiraganaQuaternary(boolean flag) {
if (isFrozen()) {
throw new UnsupportedOperationException("Attempt to modify frozen object");
* @see #isHiraganaQuaternary
* @deprecated ICU 50 Implementation detail, cannot be set via API, might be removed from implementation.
*/
+ @Deprecated
public void setHiraganaQuaternaryDefault() {
if (isFrozen()) {
throw new UnsupportedOperationException("Attempt to modify frozen object");
* @see #setHiraganaQuaternary(boolean)
* @deprecated ICU 50 Implementation detail, cannot be set via API, might be removed from implementation.
*/
+ @Deprecated
public boolean isHiraganaQuaternary() {
return m_isHiragana4_;
}
/*
* *****************************************************************************
- * Copyright (C) 2005-2013, International Business Machines Corporation and *
+ * Copyright (C) 2005-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
* *****************************************************************************
*/
/**
* Returns the resource handle for the given key within the calling resource table.
*
- * @internal
- * @deprecated This API is ICU internal only and a workaround see ticket #6514.
* @author Brian Rower
*/
protected int getTableResource(String resKey) {
* @param index The index of the resource to check
* @returns True if the resource at 'index' is an alias, false otherwise.
*
- * @internal
- * @deprecated This API is ICU internal only and part of a work around see ticket #6514
* @author Brian Rower
*/
public boolean isAlias(int index)
}
/**
- *
- * @internal
- * @deprecated This API is ICU internal only and part of a workaround see ticket #6514.
* @author Brian Rower
*/
public boolean isAlias()
* is an alias. If it is, returns true
*
* @returns True if the resource with 'key' is an alias, false otherwise.
- *
- * @internal
- * @deprecated This API is ICU internal only and part of a workaround see ticket #6514.
* @author Brian Rower
*/
public boolean isAlias(String k)
* @param index The index where the alias path points to.
* @return The alias path.
* @author Brian Rower
- * @internal
- * @deprecated This API is ICU internal only.
- * @author Brian Rower
*/
public String getAliasPath(int index)
{
}
/**
- *
- * @internal
- * @deprecated This API is ICU internal only
* @author Brian Rower
*/
public String getAliasPath()
}
/**
- *
- * @internal
- * @deprecated This API is ICU internal only
* @author Brian Rower
*/
public String getAliasPath(String k)
* underlying alias's. For all general purposes of the ICU resource bundle please use getKeys().
*
* @return Keys in this table or array.
- * @internal
- * @deprecated This API is ICU internal only and a workaround see ticket #6514.
* @author Brian Rower
*/
public Enumeration<String> getKeysSafe()
/*
*******************************************************************************
- * Copyright (C) 2005-2013, International Business Machines Corporation and *
+ * Copyright (C) 2005-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
/**
* {@inheritDoc}
- * @internal
- * @deprecated This API is ICU internal only.
*/
@Override
public void getOffsetFromLocal(long date,
/*
********************************************************************************
- * Copyright (C) 2010-2011, Google, International Business Machines Corporation *
+ * Copyright (C) 2010-2014, Google, International Business Machines Corporation *
* and others. All Rights Reserved. *
********************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+@Deprecated
public class CharSequences {
// TODO
// compareTo(a, b);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static int matchAfter(CharSequence a, CharSequence b, int aIndex, int bIndex) {
int i = aIndex, j = bIndex;
int alen = a.length();
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public int codePointLength(CharSequence s) {
return Character.codePointCount(s, 0, s.length());
// int length = s.length();
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final boolean equals(int codepoint, CharSequence other) {
if (other == null) {
return false;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final boolean equals(CharSequence other, int codepoint) {
return equals(codepoint, other);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static int compare(CharSequence string, int codePoint) {
if (codePoint < Character.MIN_CODE_POINT || codePoint > Character.MAX_CODE_POINT) {
throw new IllegalArgumentException();
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static int compare(int codepoint, CharSequence a) {
return -compare(a, codepoint);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static int getSingleCodePoint(CharSequence s) {
int length = s.length();
if (length < 1 || length > 2) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final <T extends Object> boolean equals(T a, T b) {
return a == null ? b == null
: b == null ? false
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static int compare(CharSequence a, CharSequence b) {
int alength = a.length();
int blength = b.length();
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static boolean equalsChars(CharSequence a, CharSequence b) {
// do length test first for fast path
return a.length() == b.length() && compare(a,b) == 0;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static boolean onCharacterBoundary(CharSequence s, int i) {
return i <= 0
|| i >= s.length()
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static int indexOf(CharSequence s, int codePoint) {
int cp;
for (int i = 0; i < s.length(); i += Character.charCount(cp)) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static int[] codePoints(CharSequence s) {
int[] result = new int[s.length()]; // in the vast majority of cases, the length is the same
int j = 0;
/**
*******************************************************************************
-* Copyright (C) 1996-2013, International Business Machines Corporation and
+* Copyright (C) 1996-2014, International Business Machines Corporation and
* others. All Rights Reserved.
*******************************************************************************
*/
* defined by java.lang.Character.isSpace.
* @deprecated ICU 3.4 (Java)
*/
+ @Deprecated
public static boolean isSpace(int ch) {
return ch <= 0x20 &&
(ch == 0x20 || ch == 0x09 || ch == 0x0a || ch == 0x0c || ch == 0x0d);
* @return true if the code point can start a java identifier.
* @deprecated ICU 3.4 (Java)
*/
+ @Deprecated
public static boolean isJavaLetter(int cp) {
return isJavaIdentifierStart(cp);
}
* @return true if the code point can continue a java identifier.
* @deprecated ICU 3.4 (Java)
*/
+ @Deprecated
public static boolean isJavaLetterOrDigit(int cp) {
return isJavaIdentifierPart(cp);
}
* @return null
* @deprecated ICU 49
*/
+ @Deprecated
public static String getName1_0(int ch)
{
return null;
* @return null
* @deprecated ICU 49
*/
+ @Deprecated
public static String getISOComment(int ch)
{
return null;
* @deprecated ICU 49
* @see #getName1_0(int)
*/
+ @Deprecated
public static int getCharFromName1_0(String name){
return -1;
}
* @deprecated ICU 49
* @see #getName1_0(int)
*/
+ @Deprecated
public static ValueIterator getName1_0Iterator(){
return new DummyValueIterator();
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
///CLOVER:OFF
public static String getStringPropertyValue(int propertyEnum, int codepoint, int nameChoice) {
if ((propertyEnum >= UProperty.BINARY_START && propertyEnum < UProperty.BINARY_LIMIT) ||
/**
*******************************************************************************
-* Copyright (C) 1996-2013, International Business Machines Corporation and
+* Copyright (C) 1996-2014, International Business Machines Corporation and
* others. All Rights Reserved.
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final int UNDEFINED = -1;
/**
* Corresponds to UCharacter.getISOComment(int).
* @deprecated ICU 49
*/
+ @Deprecated
public static final int ISO_COMMENT = 0x4003;
/**
* Corresponds to UCharacter.getName1_0(int).
* @deprecated ICU 49
*/
+ @Deprecated
public static final int UNICODE_1_NAME = 0x400B;
/**
/**
*******************************************************************************
-* Copyright (C) 2001-2013 International Business Machines Corporation and
+* Copyright (C) 2001-2014 International Business Machines Corporation and
* others. All Rights Reserved.
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final int getCodeFromName(String nameOrAbbr) {
try {
return UCharacter.getPropertyValueEnum(UProperty.SCRIPT,
/*
*******************************************************************************
*
- * Copyright (C) 1999-2009, International Business Machines
+ * Copyright (C) 1999-2014, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
* @internal
* @deprecated This API is ICU internal only.
*/
+@Deprecated
public final class UScriptRun
{
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public UScriptRun()
{
char[] nullChars = null;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public UScriptRun(String text)
{
reset (text);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public UScriptRun(String text, int start, int count)
{
reset(text, start, count);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public UScriptRun(char[] chars)
{
reset(chars);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public UScriptRun(char[] chars, int start, int count)
{
reset(chars, start, count);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final void reset()
{
// empty any old parenStack contents.
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final void reset(int start, int count)
throws IllegalArgumentException
{
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final void reset(char[] chars, int start, int count)
{
if (chars == null) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final void reset(char[] chars)
{
int length = 0;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final void reset(String str, int start, int count)
{
char[] chars = null;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final void reset(String str)
{
int length = 0;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final int getScriptStart()
{
return scriptStart;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final int getScriptLimit()
{
return scriptLimit;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final int getScriptCode()
{
return scriptCode;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final boolean next()
{
// if we've fallen off the end of the text, we're done
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static BreakIterator getBreakInstance(ULocale where, int kind) {
if (iterCache[kind] != null) {
/*
*******************************************************************************
- * Copyright (C) 1996-2010, International Business Machines Corporation and *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static void permute(String source, boolean skipZeros, Set<String> output) {
// TODO: optimize
//if (PROGRESS) System.out.println("Permute: " + source);
/**
*******************************************************************************
-* Copyright (C) 2005-2013, International Business Machines Corporation and *
+* Copyright (C) 2005-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String[] getDetectableCharsets() {
List<String> csnames = new ArrayList<String>(ALL_CS_RECOGNIZERS.size());
for (int i = 0; i < ALL_CS_RECOGNIZERS.size(); i++) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public CharsetDetector setDetectableCharset(String encoding, boolean enabled) {
int modIdx = -1;
boolean isDefaultVal = false;
/*********************************************************************
- * Copyright (C) 2000-2012, International Business Machines Corporation and
+ * Copyright (C) 2000-2014, International Business Machines Corporation and
* others. All Rights Reserved.
*********************************************************************
*/
* @author Alan Liu
* @deprecated ICU 50 Use SimpleDateFormat instead.
*/
+@Deprecated
public class ChineseDateFormat extends SimpleDateFormat {
// Generated by serialver from JDK 1.4.1_01
static final long serialVersionUID = -4610300753104099899L;
* @param locale the locale
* @deprecated ICU 50
*/
+ @Deprecated
public ChineseDateFormat(String pattern, Locale locale) {
this(pattern, ULocale.forLocale(locale));
}
* @param locale the locale
* @deprecated ICU 50
*/
+ @Deprecated
public ChineseDateFormat(String pattern, ULocale locale) {
this(pattern, null, locale);
}
* @param locale the locale
* @deprecated ICU 50
*/
- public ChineseDateFormat(String pattern, String override, ULocale locale) {
+ @Deprecated
+ public ChineseDateFormat(String pattern, String override, ULocale locale) {
super(pattern, new ChineseDateFormatSymbols(locale),
new ChineseCalendar(TimeZone.getDefault(), locale), locale, true, override);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected void subFormat(StringBuffer buf,
char ch, int count, int beginOffset,
int fieldNum, DisplayContext capitalizationContext,
*
* @deprecated ICU 50
*/
+ @Deprecated
protected int subParse(String text, int start, char ch, int count, boolean obeyCount, boolean allowNegative,
boolean[] ambiguousYear, Calendar cal) {
// Logic to handle numeric 'G' eras for chinese calendar, and to skip special 2-digit year
*
* @deprecated ICU 50
*/
+ @Deprecated
protected DateFormat.Field patternCharToDateFormatField(char ch) {
// no longer any field corresponding to pattern char 'l'
return super.patternCharToDateFormatField(ch);
* <p>
* @deprecated ICU 50
*/
+ @Deprecated
public static class Field extends DateFormat.Field {
private static final long serialVersionUID = -5102130532751400330L;
* Constant identifying the leap month marker.
* @deprecated ICU 50 This field is only used by the deprecated ChineseDateFormat class.
*/
+ @Deprecated
public static final Field IS_LEAP_MONTH = new Field("is leap month", ChineseCalendar.IS_LEAP_MONTH);
/**
*
* @deprecated ICU 50
*/
+ @Deprecated
protected Field(String name, int calendarField) {
super(name, calendarField);
}
*
* @deprecated ICU 50
*/
+ @Deprecated
public static DateFormat.Field ofCalendarField(int calendarField) {
// Should we remove the following, since there is no longer a specific
// date format field for leap month (since 'l' pattern char is obsolete)?
*
* @deprecated ICU 50
*/
+ @Deprecated
///CLOVER:OFF
protected Object readResolve() throws InvalidObjectException {
if (this.getClass() != ChineseDateFormat.Field.class) {
/****************************************************************************
- * Copyright (C) 2000-2013, International Business Machines Corporation and
+ * Copyright (C) 2000-2014, International Business Machines Corporation and
* others. All Rights Reserved.
****************************************************************************
*/
* @author Alan Liu
* @deprecated ICU 50
*/
+@Deprecated
public class ChineseDateFormatSymbols extends DateFormatSymbols {
// Generated by serialver from JDK 1.4.1_01
static final long serialVersionUID = 6827816119783952890L;
* @see Category#FORMAT
* @deprecated ICU 50
*/
+ @Deprecated
public ChineseDateFormatSymbols() {
this(ULocale.getDefault(Category.FORMAT));
}
* @param locale the locale
* @deprecated ICU 50
*/
+ @Deprecated
public ChineseDateFormatSymbols(Locale locale) {
super(ChineseCalendar.class, ULocale.forLocale(locale));
}
* @param locale the locale
* @deprecated ICU 50
*/
+ @Deprecated
public ChineseDateFormatSymbols(ULocale locale) {
super(ChineseCalendar.class, locale);
}
* @param locale the locale
* @deprecated ICU 50
*/
+ @Deprecated
public ChineseDateFormatSymbols(Calendar cal, Locale locale) {
// NPE is thrown here when cal is null, like the super class does
super(cal.getClass(), locale);
* @param locale the locale
* @deprecated ICU 50
*/
+ @Deprecated
public ChineseDateFormatSymbols(Calendar cal, ULocale locale) {
// NPE is thrown here when cal is null, like the super class does
super(cal.getClass(), locale);
/**
* @deprecated ICU 50
*/
+ @Deprecated
public String getLeapMonth(int leap) {
return isLeapMonth[leap];
}
* {@inheritDoc}
* @deprecated ICU 50
*/
+ @Deprecated
protected void initializeData(ULocale loc, CalendarData calData) {
super.initializeData(loc, calData);
initializeIsLeapMonth();
/*
*******************************************************************************
- * Copyright (C) 1996-2013, Google, International Business Machines Corporation and
+ * Copyright (C) 1996-2014, Google, International Business Machines Corporation and
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public CompactDecimalFormat(String pattern, DecimalFormatSymbols formatSymbols,
CompactStyle style, PluralRules pluralRules,
long[] divisor, Map<String,String[][]> pluralAffixes, Map<String, String[]> currencyAffixes,
/*
*******************************************************************************
- * Copyright (C) 1996-2010, International Business Machines Corporation and *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* It will be updated as later versions of Unicode are released.
* @deprecated ICU 2.2
*/
+@Deprecated
///CLOVER:OFF
public final class ComposedCharIter {
/**
* over which to iterate.
* @deprecated ICU 2.2
*/
+ @Deprecated
public static final char DONE = (char) Normalizer.DONE;
/**
* Hangul characters.
* @deprecated ICU 2.2
*/
+ @Deprecated
public ComposedCharIter() {
this(false, 0);
}
* @param options Optional decomposition features. None are supported, so this is ignored.
* @deprecated ICU 2.2
*/
+ @Deprecated
public ComposedCharIter(boolean compat, int options) {
if(compat) {
n2impl = Norm2AllModes.getNFKCInstance().impl;
* by {@link #next}.
* @deprecated ICU 2.2
*/
+ @Deprecated
public boolean hasNext() {
if (nextChar == Normalizer.DONE) {
findNextChar();
* to <tt>next</tt> will return {@link #DONE}.
* @deprecated ICU 2.2
*/
+ @Deprecated
public char next() {
if (nextChar == Normalizer.DONE) {
findNextChar();
* affected by the settings of the options passed to the constructor.
* @deprecated ICU 2.2
*/
+ @Deprecated
public String decomposition() {
// the decomposition buffer contains the decomposition of
// current char so just return it
/*
*******************************************************************************
- * Copyright (C) 2009-2013, International Business Machines Corporation and *
+ * Copyright (C) 2009-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static boolean hasData() {
return CurrencyData.provider.hasData();
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected CurrencyDisplayNames() {
}
}
/*
*******************************************************************************
- * Copyright (C) 2009-2013, International Business Machines Corporation and *
+ * Copyright (C) 2009-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static boolean hasData() {
return hasData;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected CurrencyMetaInfo() {
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final boolean tenderOnly;
private CurrencyFilter(String region, String currency, long from, long to, boolean tenderOnly) {
/**
* @deprecated ICU 51 Use {@link CurrencyMetaInfo#currencyInfo(CurrencyFilter)} instead.
- */
+ */
+ @Deprecated
public CurrencyInfo(String region, String code, long from, long to, int priority) {
this(region, code, from, to, priority, true);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public CurrencyInfo(String region, String code, long from, long to, int priority, boolean tender) {
this.region = region;
this.code = code;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected static final CurrencyDigits defaultDigits = new CurrencyDigits(2, 0);
static {
/*
*******************************************************************************
- * Copyright (C) 2009-2013, International Business Machines Corporation and *
+ * Copyright (C) 2009-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public int hashCode() {
assert false : "hashCode not designed";
return 42;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
String select(double number) {
return pluralRules.select(number);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
String select(PluralRules.FixedDecimal numberInfo) {
return pluralRules.select(numberInfo);
}
* {@icu} Constant for date skeleton with standalone month.
* @deprecated ICU 50 Use {@link #MONTH} instead.
*/
+ @Deprecated
public static final String STANDALONE_MONTH = "LLLL";
/**
* {@icu} Constant for date skeleton with standalone abbreviated month.
* @deprecated ICU 50 Use {@link #ABBR_MONTH} instead.
*/
+ @Deprecated
public static final String ABBR_STANDALONE_MONTH = "LLL";
/**
* {@icu} Constant for date skeleton with hour, minute, and generic timezone.
* @deprecated ICU 50 Use instead {@link #HOUR_MINUTE}+{@link #ABBR_GENERIC_TZ} or some other timezone presentation.
*/
+ @Deprecated
public static final String HOUR_MINUTE_GENERIC_TZ = "jmv";
/**
* {@icu} Constant for date skeleton with hour, minute, and timezone.
* @deprecated ICU 50 Use instead {@link #HOUR_MINUTE}+{@link #ABBR_SPECIFIC_TZ} or some other timezone presentation.
*/
+ @Deprecated
public static final String HOUR_MINUTE_TZ = "jmz";
/**
* {@icu} Constant for date skeleton with hour and generic timezone.
* @deprecated ICU 50 Use instead {@link #HOUR}+{@link #ABBR_GENERIC_TZ} or some other timezone presentation.
*/
+ @Deprecated
public static final String HOUR_GENERIC_TZ = "jv";
/**
* {@icu} Constant for date skeleton with hour and timezone.
* @deprecated ICU 50 Use instead {@link #HOUR}+{@link #ABBR_SPECIFIC_TZ} or some other timezone presentation.
*/
+ @Deprecated
public static final String HOUR_TZ = "jz";
/*
*******************************************************************************
- * Copyright (C) 1996-2013, International Business Machines Corporation and *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final int DT_CONTEXT_COUNT = 2;
// Constants for width
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final int DT_WIDTH_COUNT = 4;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
// This API was accidentally marked as @stable ICU 3.0 formerly.
protected void initializeData(ULocale desiredLocale, CalendarData calData)
{
* this API no longer works as described. This method always returns null.
* @deprecated ICU 4.0
*/
+ @Deprecated
// This API was formerly @stable ICU 2.0
static public ResourceBundle getDateFormatBundle(Class<? extends Calendar> calendarClass,
Locale locale)
* this API no longer works as described. This method always returns null.
* @deprecated ICU 4.0
*/
+ @Deprecated
// This API was formerly @stable ICU 3.2
static public ResourceBundle getDateFormatBundle(Class<? extends Calendar> calendarClass,
ULocale locale)
* @see #getDateFormatBundle(java.lang.Class, java.util.Locale)
* @deprecated ICU 4.0
*/
+ @Deprecated
// This API was formerly @stable ICU 2.2
public static ResourceBundle getDateFormatBundle(Calendar cal, Locale locale)
throws MissingResourceException {
* @see #getDateFormatBundle(java.lang.Class, java.util.Locale)
* @deprecated ICU 4.0
*/
+ @Deprecated
// This API was formerly @stable ICU 3.2
public static ResourceBundle getDateFormatBundle(Calendar cal, ULocale locale)
throws MissingResourceException {
/*
-* Copyright (C) 2008-2013, International Business Machines
+* Copyright (C) 2008-2014, International Business Machines
* Corporation and others. All Rights Reserved.
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public DateIntervalFormat(String skeleton, DateIntervalInfo dtItvInfo,
SimpleDateFormat simpleDateFormat)
{
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String getPatterns(Calendar fromCalendar,
Calendar toCalendar,
Output<String> part2) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public Object parseObject(String source, ParsePosition parse_pos)
{
throw new UnsupportedOperationException("parsing is not supported");
/*
*******************************************************************************
- * Copyright (C) 2008-2013, International Business Machines Corporation and *
+ * Copyright (C) 2008-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public DateIntervalInfo()
{
fIntervalPatterns = new HashMap<String, Map<String, PatternInfo>>();
* @internal CLDR
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public Map<String,Set<String>> getPatterns() {
LinkedHashMap<String,Set<String>> result = new LinkedHashMap<String,Set<String>>();
for (Entry<String, Map<String, PatternInfo>> entry : fIntervalPatterns.entrySet()) {
/*
********************************************************************************
- * Copyright (C) 2006-2013, Google, International Business Machines Corporation *
+ * Copyright (C) 2006-2014, Google, International Business Machines Corporation *
* and others. All Rights Reserved. *
********************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static DateTimePatternGenerator getFrozenInstance(ULocale uLocale) {
String localeKey = uLocale.toString();
DateTimePatternGenerator result = DTPNG_CACHE.get(localeKey);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public char getDefaultHourFormatChar() {
return defaultHourFormatChar;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public void setDefaultHourFormatChar(char defaultHourFormatChar) {
this.defaultHourFormatChar = defaultHourFormatChar;
}
* @internal CLDR
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static int getAppendFormatNumber(String string) {
for (int i = 0; i < CLDR_FIELD_APPEND.length; ++i) {
if (CLDR_FIELD_APPEND[i].equals(string)) return i;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public DateTimePatternGenerator addPatternWithSkeleton(String pattern, String skeletonToUse, boolean override, PatternInfo returnInfo) {
checkFrozen();
DateTimeMatcher matcher;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String getSkeletonAllowingDuplicates(String pattern) {
synchronized (this) { // synchronized since a getter must be thread-safe
current.set(pattern, fp, true);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String getCanonicalSkeletonAllowingDuplicates(String pattern) {
synchronized (this) { // synchronized since a getter must be thread-safe
current.set(pattern, fp, true);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public Collection<String> getRedundants(Collection<String> output) {
synchronized (this) { // synchronized since a getter must be thread-safe
if (output == null) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final int MATCH_MINUTE_FIELD_LENGTH = 1 << MINUTE;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final int MATCH_SECOND_FIELD_LENGTH = 1 << SECOND;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static boolean isSingleField(String skeleton) {
char first = skeleton.charAt(0);
for (int i = 1; i < skeleton.length(); ++i) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static class VariableField {
private final String string;
private final int canonicalIndex;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public VariableField(String string) {
this(string, false);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public VariableField(String string, boolean strict) {
canonicalIndex = DateTimePatternGenerator.getCanonicalIndex(string, strict);
if (canonicalIndex < 0) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public int getType() {
return types[canonicalIndex][1];
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static String getCanonicalCode(int type) {
try {
return CANONICAL_ITEMS[type];
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public boolean isNumeric() {
return types[canonicalIndex][2] > 0;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String toString() {
return string;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
static public class FormatParser {
private transient PatternTokenizer tokenizer = new PatternTokenizer()
.setSyntaxCharacters(new UnicodeSet("[a-zA-Z]"))
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public FormatParser() {
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
final public FormatParser set(String string) {
return set(string, false);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public FormatParser set(String string, boolean strict) {
items.clear();
if (string.length() == 0) return this;
// /**
// * Produce a string which concatenates all the variables. That is, it is the logically the same as the input with all literals removed.
// * @return a string which is a concatenation of all the variable fields
- // * @internal
- // * @deprecated This API is ICU internal only.
// */
// public String getVariableFieldString() {
// List list = getVariableFields(null);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public List<Object> getItems() {
return items;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String toString() {
return toString(0, items.size());
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String toString(int start, int limit) {
StringBuilder result = new StringBuilder();
for (int i = start; i < limit; ++i) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public boolean hasDateAndTimeFields() {
int foundMask = 0;
for (Object item : items) {
// * @param value
// * @param result
// * @return list
- // * @internal
- // * @deprecated This API is ICU internal only.
// */
// public List getAutoPatterns(String value, List result) {
// if (result == null) result = new ArrayList();
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public Object quoteLiteral(String string) {
return tokenizer.quoteLiteral(string);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public boolean skeletonsAreSimilar(String id, String skeleton) {
if (id.equals(skeleton)) {
return true; // fast path
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String getFields(String pattern) {
fp.set(pattern);
StringBuilder newPattern = new StringBuilder();
/*
*******************************************************************************
- * Copyright (C) 1996-2013, International Business Machines Corporation and *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @return The number rounded to the correct number of significant digits
* with negative sign stripped off.
* @internal
- * @deprecated
+ * @deprecated This API is ICU internal only.
*/
@Deprecated
double adjustNumberAsInFormatting(double number) {
* @param number The number to format.
* @return True if number is negative.
* @internal
- * @deprecated
+ * @deprecated This API is ICU internal only.
*/
@Deprecated
boolean isNumberNegative(double number) {
/*
*******************************************************************************
- * Copyright (C) 1996-2013, International Business Machines Corporation and *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String getMinusString() {
return minusString;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String getPlusString() {
return plusString;
}
/*
*******************************************************************************
- * Copyright (C) 2007-2009, International Business Machines Corporation and *
+ * Copyright (C) 2007-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected DurationFormat() {
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected DurationFormat(ULocale locale) {
setLocale(locale,locale);
}
/*
*******************************************************************************
- * Copyright (C) 2003-2013, International Business Machines Corporation and *
+ * Copyright (C) 2003-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected static void resetInfo(Info info) {
info.reset();
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected static boolean hasCertainErrors(Info info, EnumSet<Error> errors) {
return !info.errors.isEmpty() && !Collections.disjoint(info.errors, errors);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected static boolean hasCertainLabelErrors(Info info, EnumSet<Error> errors) {
return !info.labelErrors.isEmpty() && !Collections.disjoint(info.labelErrors, errors);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected static void addLabelError(Info info, Error error) {
info.labelErrors.add(error);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected static void promoteAndResetLabelErrors(Info info) {
if(!info.labelErrors.isEmpty()) {
info.errors.addAll(info.labelErrors);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected static void addError(Info info, Error error) {
info.errors.add(error);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected static void setTransitionalDifferent(Info info) {
info.isTransDiff=true;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected static void setBiDi(Info info) {
info.isBiDi=true;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected static boolean isBiDi(Info info) {
return info.isBiDi;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected static void setNotOkBiDi(Info info) {
info.isOkBiDi=false;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected static boolean isOkBiDi(Info info) {
return info.isOkBiDi;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected IDNA() {
}
* @internal
* @deprecated This API is ICU internal only.
*/
+@Deprecated
public class IdentifierInfo {
private static final UnicodeSet ASCII = new UnicodeSet(0, 0x7F).freeze();
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public IdentifierInfo() {
super();
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
+
public IdentifierInfo setIdentifierProfile(UnicodeSet identifierProfile) {
this.identifierProfile.set(identifierProfile);
return this;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
+
public UnicodeSet getIdentifierProfile() {
return new UnicodeSet(identifierProfile);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public IdentifierInfo setIdentifier(String identifier) {
this.identifier = identifier;
clear();
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String getIdentifier() {
return identifier;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public BitSet getScripts() {
return (BitSet) requiredScripts.clone();
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public Set<BitSet> getAlternates() {
Set<BitSet> result = new HashSet<BitSet>();
for (BitSet item : scriptSetSet) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public UnicodeSet getNumerics() {
return new UnicodeSet(numerics);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public BitSet getCommonAmongAlternates() {
return (BitSet) commonAmongAlternates.clone();
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public RestrictionLevel getRestrictionLevel() {
if (!identifierProfile.containsAll(identifier) || getNumerics().size() > 1) {
return RestrictionLevel.UNRESTRICTIVE;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public int getScriptCount() {
// Note: Common and Inherited scripts were removed by setIdentifier(), and do not appear in fRequiredScripts.
int count = requiredScripts.cardinality() +
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
public String toString() {
return identifier + ", " + identifierProfile.toPattern(false) + ", " + getRestrictionLevel() + ", "
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static String displayAlternates(Set<BitSet> alternates) {
if (alternates.size() == 0) {
return "";
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final Comparator<BitSet> BITSET_COMPARATOR = new Comparator<BitSet>() {
public int compare(BitSet arg0, BitSet arg1) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static String displayScripts(BitSet scripts) {
StringBuilder result = new StringBuilder();
for (int i = scripts.nextSetBit(0); i >= 0; i = scripts.nextSetBit(i + 1)) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static BitSet parseScripts(String scriptsString) {
BitSet result = new BitSet();
for (String item : scriptsString.trim().split(",?\\s+")) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static Set<BitSet> parseAlternates(String scriptsSetString) {
Set<BitSet> result = new HashSet<BitSet>();
for (String item : scriptsSetString.trim().split("\\s*;\\s*")) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final boolean contains(BitSet container, BitSet containee) {
for (int i = containee.nextSetBit(0); i >= 0; i = containee.nextSetBit(i + 1)) {
if (!container.get(i)) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final BitSet set(BitSet bitset, int... values) {
for (int value : values) {
bitset.set(value);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public enum Style {
/**
* Standard style.
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
STANDARD("standard"),
/**
* Style for full durations
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
DURATION("unit"),
/**
* Style for durations in abbrevated form
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
DURATION_SHORT("unit-short"),
/**
* Style for durations in narrow form
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
DURATION_NARROW("unit-narrow");
private final String name;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String getName() {
return name;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public ListFormatter(String two, String start, String middle, String end) {
this(
SimplePatternFormatter.compile(two),
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static ListFormatter getInstance(ULocale locale, Style style) {
return cache.get(locale, style.getName());
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public ULocale getLocale() {
return locale;
}
/*
*******************************************************************************
- * Copyright (C) 2009-2012, International Business Machines Corporation and *
+ * Copyright (C) 2009-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal ICU 49
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String scriptDisplayNameInContext(String script) {
return scriptDisplayName(script);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected LocaleDisplayNames() {
}
}
/*
*******************************************************************************
- * Copyright (C) 2000-2012, International Business Machines Corporation and
+ * Copyright (C) 2000-2014, International Business Machines Corporation and
* others. All Rights Reserved.
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected abstract Normalizer2 getNormalizer2(int options);
}
* @deprecated ICU 2.8. Use Nomalizer.NONE
* @see #NONE
*/
+ @Deprecated
public static final Mode NO_OP = NONE;
/**
* @deprecated ICU 2.8. Use Normalier.NFC
* @see #NFC
*/
+ @Deprecated
public static final Mode COMPOSE = NFC;
/**
* @deprecated ICU 2.8. Use Normalizer.NFKC
* @see #NFKC
*/
+ @Deprecated
public static final Mode COMPOSE_COMPAT = NFKC;
/**
* @deprecated ICU 2.8. Use Normalizer.NFD
* @see #NFD
*/
+ @Deprecated
public static final Mode DECOMP = NFD;
/**
* @deprecated ICU 2.8. Use Normalizer.NFKD
* @see #NFKD
*/
+ @Deprecated
public static final Mode DECOMP_COMPAT = NFKD;
/**
* @see #setOption
* @deprecated ICU 2.8. This option is no longer supported.
*/
+ @Deprecated
public static final int IGNORE_HANGUL = 0x0001;
/**
* @deprecated ICU 3.2
* @obsolete ICU 3.2
*/
+ @Deprecated
///CLOVER:OFF
public int setIndex(int index) {
setIndexOnly(index);
* @return The codepoint as an int
* @see #startIndex
*/
+ @Deprecated
public int getBeginIndex() {
return 0;
}
* @return The codepoint as an int
* @see #endIndex
*/
+ @Deprecated
public int getEndIndex() {
return endIndex();
}
/*
*******************************************************************************
-* Copyright (C) 2009-2013, International Business Machines
+* Copyright (C) 2009-2014, International Business Machines
* Corporation and others. All Rights Reserved.
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected Normalizer2() {
}
}
/*
*******************************************************************************
- * Copyright (C) 2007-2013, International Business Machines Corporation and
+ * Copyright (C) 2007-2014, International Business Machines Corporation and
* others. All Rights Reserved.
*******************************************************************************
*/
* a different kind of PluralRules instance;
* use one of the constructors to create a new instance instead.
*/
+ @Deprecated
public void setLocale(ULocale ulocale) {
if (ulocale == null) {
ulocale = ULocale.getDefault(Category.FORMAT);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final String CATEGORY_SEPARATOR = "; ";
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final String KEYWORD_RULE_SEPARATOR = ": ";
private static final long serialVersionUID = 1;
/**
* Provides a factory for returning plural rules
*
- * @deprecated This API is ICU internal only.
* @internal
+ * @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static abstract class Factory {
/**
* Provides access to the predefined <code>PluralRules</code> for a given locale and the plural type.
* @return The predefined <code>PluralRules</code> object for this locale. If there's no predefined rules for
* this locale, the rules for the closest parent in the locale hierarchy that has one will be returned.
* The final fallback always returns the default rules.
- * @deprecated This API is ICU internal only.
* @internal
+ * @deprecated This API is ICU internal only.
*/
+ @Deprecated
public abstract PluralRules forLocale(ULocale locale, PluralType type);
/**
* Utility for getting CARDINAL rules.
* @param locale the locale
* @return plural rules.
- * @deprecated This API is ICU internal only.
* @internal
+ * @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final PluralRules forLocale(ULocale locale) {
return forLocale(locale, PluralType.CARDINAL);
}
/**
* Returns the locales for which there is plurals data.
*
- * @deprecated This API is ICU internal only.
* @internal
+ * @deprecated This API is ICU internal only.
*/
+ @Deprecated
public abstract ULocale[] getAvailableULocales();
/**
* if not null and of length > 0, this will hold 'true' at index 0 if locale is directly defined
* (without fallback) as having plural rules
* @return the functionally-equivalent locale
- * @deprecated This API is ICU internal only.
* @internal
+ * @deprecated This API is ICU internal only.
*/
+ @Deprecated
public abstract ULocale getFunctionalEquivalent(ULocale locale, boolean[] isAvailable);
/**
* Returns the default factory.
- * @deprecated This API is ICU internal only.
* @internal
+ * @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static PluralRulesLoader getDefaultFactory() {
return PluralRulesLoader.loader;
}
/**
* Returns whether or not there are overrides.
- * @deprecated This API is ICU internal only.
* @internal
+ * @deprecated This API is ICU internal only.
*/
+ @Deprecated
public abstract boolean hasOverride(ULocale locale);
}
// Standard keywords.
t,
v,
w,
- /**@deprecated*/
+ /* deprecated */
j;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static class FixedDecimal extends Number implements Comparable<FixedDecimal> {
private static final long serialVersionUID = -4756200506571685661L;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final double source;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final int visibleDecimalDigitCount;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final int visibleDecimalDigitCountWithoutTrailingZeros;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final long decimalDigits;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final long decimalDigitsWithoutTrailingZeros;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final long integerValue;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final boolean hasIntegerValue;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final boolean isNegative;
private final int baseFactor;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public double getSource() {
return source;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public int getVisibleDecimalDigitCount() {
return visibleDecimalDigitCount;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public int getVisibleDecimalDigitCountWithoutTrailingZeros() {
return visibleDecimalDigitCountWithoutTrailingZeros;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public long getDecimalDigits() {
return decimalDigits;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public long getDecimalDigitsWithoutTrailingZeros() {
return decimalDigitsWithoutTrailingZeros;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public long getIntegerValue() {
return integerValue;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public boolean isHasIntegerValue() {
return hasIntegerValue;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public boolean isNegative() {
return isNegative;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public int getBaseFactor() {
return baseFactor;
}
* @param f Corresponds to f in the plural rules grammar.
* The digits to the right of the decimal place as an integer. e.g 1.10 = 10
*/
+ @Deprecated
public FixedDecimal(double n, int v, long f) {
isNegative = n < 0;
source = isNegative ? -n : n;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public FixedDecimal(double n, int v) {
this(n,v,getFractionalDigits(n, v));
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public FixedDecimal(double n) {
this(n, decimals(n));
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public FixedDecimal(long n) {
this(n,0);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static int decimals(double n) {
// Ugly...
String temp = String.valueOf(n);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public FixedDecimal (String n) {
// Ugly, but for samples we don't care.
this(Double.parseDouble(n), getVisibleFractionCount(n));
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public double get(Operand operand) {
switch(operand) {
default: return source;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static Operand getOperand(String t) {
return Operand.valueOf(t);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public int compareTo(FixedDecimal other) {
if (integerValue != other.integerValue) {
return integerValue < other.integerValue ? -1 : 1;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
public boolean equals(Object arg0) {
if (arg0 == null) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
public int hashCode() {
// TODO Auto-generated method stub
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
public String toString() {
return String.format("%." + visibleDecimalDigitCount + "f", source);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public boolean hasIntegerValue() {
return hasIntegerValue;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
public int intValue() {
// TODO Auto-generated method stub
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
public long longValue() {
return integerValue;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
public float floatValue() {
return (float) source;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
public double doubleValue() {
return source;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public long getShiftedValue() {
return integerValue * baseFactor + decimalDigits;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public enum SampleType {
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
INTEGER,
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
DECIMAL
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static class FixedDecimalRange {
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final FixedDecimal start;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final FixedDecimal end;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public FixedDecimalRange(FixedDecimal start, FixedDecimal end) {
if (start.visibleDecimalDigitCount != end.visibleDecimalDigitCount) {
throw new IllegalArgumentException("Ranges must have the same number of visible decimals: " + start + "~" + end);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
public String toString() {
return start + (end == start ? "" : "~" + end);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static class FixedDecimalSamples {
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final SampleType sampleType;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final Set<FixedDecimalRange> samples;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final boolean bounded;
/**
* The samples must be immutable.
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public Set<Double> addSamples(Set<Double> result) {
for (FixedDecimalRange item : samples) {
// we have to convert to longs so we don't get strange double issues
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
public String toString() {
StringBuilder b = new StringBuilder("@").append(sampleType.toString().toLowerCase(Locale.ENGLISH));
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public Set<FixedDecimalRange> getSamples() {
return samples;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public void getStartEndSamples(Set<FixedDecimal> target) {
for (FixedDecimalRange item : samples) {
target.add(item.start);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
public int hashCode() {
return keyword.hashCode() ^ constraint.hashCode();
* @deprecated This API is ICU internal only.
* @internal
*/
+ @Deprecated
public enum StandardPluralCategories {
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
zero,
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
one,
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
two,
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
few,
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
many,
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
other;
static StandardPluralCategories forString(String s) {
StandardPluralCategories a;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
public int hashCode() {
return rules.hashCode();
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String select(double number, int countVisibleFractionDigits, long fractionaldigits) {
return rules.select(new FixedDecimal(number, countVisibleFractionDigits, fractionaldigits));
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String select(FixedDecimal sample) {
return rules.select(sample);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public boolean matches(FixedDecimal sample, String keyword) {
return rules.select(sample, keyword);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public Collection<Double> getAllKeywordValues(String keyword, SampleType type) {
if (!isLimited(keyword, type)) {
return null;
*
* @param keyword the keyword to test
* @return a list of values matching the keyword.
+ * @internal
* @deprecated ICU internal only
- * @internal
*/
+ @Deprecated
public Collection<Double> getSamples(String keyword, SampleType sampleType) {
if (!keywords.contains(keyword)) {
return null;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public boolean addSample(String keyword, Number sample, int maxCount, Set<Double> result) {
String selectedKeyword = sample instanceof FixedDecimal ? select((FixedDecimal)sample) : select(sample.doubleValue());
if (selectedKeyword.equals(keyword)) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public FixedDecimalSamples getDecimalSamples(String keyword, SampleType sampleType) {
return rules.getDecimalSamples(keyword, sampleType);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String getRules(String keyword) {
return rules.getRules(keyword);
}
* @internal
* @deprecated internal
*/
+ @Deprecated
public int compareTo(PluralRules other) {
return toString().compareTo(other.toString());
}
* @internal
* @deprecated internal
*/
+ @Deprecated
public Boolean isLimited(String keyword) {
return rules.isLimited(keyword, SampleType.INTEGER);
}
* @internal
* @deprecated internal
*/
+ @Deprecated
public boolean isLimited(String keyword, SampleType sampleType) {
return rules.isLimited(keyword, sampleType);
}
* @internal
* @deprecated internal
*/
+ @Deprecated
public boolean computeLimited(String keyword, SampleType sampleType) {
return rules.computeLimited(keyword, sampleType);
}
/*
*******************************************************************************
- * Copyright (C) 2013, International Business Machines Corporation and *
+ * Copyright (C) 2013-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+@Deprecated
public class PluralSamples {
private PluralRules pluralRules;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final Map<String, Boolean> _keyLimitedMap;
private final Map<String, Set<FixedDecimal>> _keyFractionSamplesMap;
private final Set<FixedDecimal> _fractionSamples;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public PluralSamples(PluralRules pluralRules) {
this.pluralRules = pluralRules;
Set<String> keywords = pluralRules.getKeywords();
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public KeywordStatus getStatus(String keyword, int offset, Set<Double> explicits, Output<Double> uniqueValue) {
if (uniqueValue != null) {
uniqueValue.value = null;
//=======================================================================
/**
- * @internal
- * @deprecated This API is ICU internal only.
+ * private constructor
*/
private RuleBasedBreakIterator() {
fLastStatusIndexValid = true;
private CharacterIterator fText = new java.text.StringCharacterIterator("");
/**
- * The rule data for this BreakIterator instance
- * @internal
- * @deprecated This API is ICU internal only.
+ * The rule data for this BreakIterator instance. Package private.
*/
RBBIDataWrapper fRData;
/**
* Debugging flag. Trace operation of state machine when true.
- * @internal
- * @deprecated This API is ICU internal only.
*/
private static final boolean TRACE = ICUDebug.enabled(RBBI_DEBUG_ARG)
&& ICUDebug.value(RBBI_DEBUG_ARG).indexOf("trace") >= 0;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public void dump() {
this.fRData.dump();
}
}
/**
- * @internal
- * @deprecated This API is ICU internal only.
+ * package private
*/
void setBreakType(int type) {
fBreakType = type;
}
/**
- * @internal
- * @deprecated This API is ICU internal only.
+ * package private
*/
int getBreakType() {
return fBreakType;
/*
*******************************************************************************
- * Copyright (C) 1996-2013, International Business Machines Corporation and *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public int hashCode() {
return super.hashCode();
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public SimpleDateFormat(String pattern, DateFormatSymbols formatData, ULocale loc)
{
this(pattern, (DateFormatSymbols)formatData.clone(), null, null, loc, true,null);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static SimpleDateFormat getInstance(Calendar.FormatConfiguration formatConfig) {
String ostr = formatConfig.getOverrideString();
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected String subFormat(char ch, int count, int beginOffset,
int fieldNum, DisplayContext capitalizationContext,
FieldPosition pos,
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@SuppressWarnings("fallthrough")
protected void subFormat(StringBuffer buf,
char ch, int count, int beginOffset,
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected void zeroPaddingNumber(NumberFormat nf,StringBuffer buf, int value,
int minDigits, int maxDigits) {
// Note: Indian calendar uses negative value for a calendar
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
private int matchString(String text, int start, int field, String[] data, String monthPattern, Calendar cal)
{
int i = 0;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@SuppressWarnings("fallthrough")
private int subParse(String text, int start, char ch, int count,
boolean obeyCount, boolean allowNegative,
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public final StringBuffer intervalFormatByAlgorithm(Calendar fromCalendar,
Calendar toCalendar,
StringBuffer appendTo,
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected NumberFormat getNumberFormat(char ch) {
Character ovrField;
* Security Profile constant from UAX 31 for use in setAllowedChars.
* Will probably be replaced by UnicodeSet property.
* @internal
+ * @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final UnicodeSet INCLUSION = new UnicodeSet("[" +
"\\u0027\\u002D-\\u002E\\u003A\\u00B7\\u0375\\u058A\\u05F3-\\u05F4"+
"\\u06FD-\\u06FE\\u0F0B\\u200C-\\u200D\\u2010\\u2019\\u2027\\u30A0\\u30FB]").freeze();
* Security Profile constant from UAX 31 for use in setAllowedChars.
* Will probably be replaced by UnicodeSet property.
* @internal
+ * @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final UnicodeSet RECOMMENDED = new UnicodeSet("[" +
"\\u0030-\\u0039\\u0041-\\u005A\\u005F\\u0061-\\u007A\\u00C0-\\u00D6\\u00D8-\\u00F6" +
"\\u00F8-\\u0131\\u0134-\\u013E\\u0141-\\u0148\\u014A-\\u017E\\u01A0-\\u01A1\\u01AF-\\u01B0" +
* The default if this is not called is HIGHLY_RESTRICTIVE.
*
* @internal
+ * @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final int RESTRICTION_LEVEL = 16;
/**
* Check that an identifer contains only characters from a single script (plus chars from the common and inherited
* scripts.) Applies to checks of a single identifier check only.
*
- * @stable ICU 4.6
- * @deprecated Use RESTRICTION_LEVEL
+ * @deprecated ICU 51 Use RESTRICTION_LEVEL
*/
+ @Deprecated
public static final int SINGLE_SCRIPT = RESTRICTION_LEVEL;
/**
* Check that an identifier does not mix numbers.
*
* @internal
+ * @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final int MIXED_NUMBERS = 128;
/**
* @param restrictionLevel The loosest restriction level allowed.
* @return self
* @internal
+ * @deprecated This API is ICU internal only.
*/
+ @Deprecated
public Builder setRestrictionLevel(RestrictionLevel restrictionLevel) {
fRestrictionLevel = restrictionLevel;
fChecks |= RESTRICTION_LEVEL;
*
* @return The restriction level
* @internal
+ * @deprecated This API is ICU internal only.
*/
+ @Deprecated
public RestrictionLevel getRestrictionLevel() {
return fRestrictionLevel;
}
*
* @deprecated ICU 51. No longer supported. Always set to zero.
*/
+ @Deprecated
public int position;
/**
* The numerics found in the string, if MIXED_NUMBERS was set; otherwise null;
*
* @internal
+ * @deprecated This API is ICU internal only.
*/
+ @Deprecated
public UnicodeSet numerics;
/**
* The restriction level that the text meets, if RESTRICTION_LEVEL is set; otherwise null.
*
* @internal
+ * @deprecated This API is ICU internal only.
*/
+ @Deprecated
public RestrictionLevel restrictionLevel;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
public boolean equals(Object other) {
if (!(other instanceof SpoofChecker)) {return false; }
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
public int hashCode() {
assert false; // To make sure ICU implementation does not depend on this.
/*
*******************************************************************************
- * Copyright (C) 1996-2006, International Business Machines Corporation and *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @see CharacterIterator
* @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
*/
+@Deprecated
///CLOVER:OFF
public final class StringCharacterIterator implements CharacterIterator
{
* Constructs an iterator with an initial index of 0.
* @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
*/
+ @Deprecated
public StringCharacterIterator(String text)
{
this(text, 0);
* @param pos Initial iterator position
* @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
*/
+ @Deprecated
public StringCharacterIterator(String text, int pos)
{
this(text, 0, text.length(), pos);
* @param pos Initial iterator position
* @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
*/
+ @Deprecated
public StringCharacterIterator(String text, int begin, int end, int pos) {
if (text == null) {
throw new NullPointerException();
* @param text The String to be iterated over
* @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
*/
+ @Deprecated
public void setText(String text) {
if (text == null) {
throw new NullPointerException();
* @see CharacterIterator#first
* @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
*/
+ @Deprecated
public char first()
{
pos = begin;
* @see CharacterIterator#last
* @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
*/
+ @Deprecated
public char last()
{
if (end != begin) {
* @see CharacterIterator#setIndex
* @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
*/
+ @Deprecated
public char setIndex(int p)
{
if (p < begin || p > end) {
* @see CharacterIterator#current
* @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
*/
+ @Deprecated
public char current()
{
if (pos >= begin && pos < end) {
* @see CharacterIterator#next
* @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
*/
+ @Deprecated
public char next()
{
if (pos < end - 1) {
* @see CharacterIterator#previous
* @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
*/
+ @Deprecated
public char previous()
{
if (pos > begin) {
* @see CharacterIterator#getBeginIndex
* @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
*/
+ @Deprecated
public int getBeginIndex()
{
return begin;
* @see CharacterIterator#getEndIndex
* @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
*/
+ @Deprecated
public int getEndIndex()
{
return end;
* @see CharacterIterator#getIndex
* @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
*/
+ @Deprecated
public int getIndex()
{
return pos;
* StringCharacterIterator object; false otherwise.
* @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
*/
+ @Deprecated
public boolean equals(Object obj)
{
if (this == obj) {
* @return A hash code
* @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
*/
+ @Deprecated
public int hashCode()
{
return text.hashCode() ^ pos ^ begin ^ end;
/*
*******************************************************************************
- * Copyright (C) 2003-2011, International Business Machines Corporation and *
+ * Copyright (C) 2003-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public int hashCode() {
assert false : "hashCode not designed";
return 42;
* </pre>
*
* <P>
- * @deprecated use {@link MeasureFormat} instead.
* @see TimeUnitAmount
* @see MeasureFormat
* @author markdavis
- * @stable ICU 4.0
+ * @deprecated ICU 53 use {@link MeasureFormat} instead.
*/
+@Deprecated
public class TimeUnitFormat extends MeasureFormat {
/**
/*
*******************************************************************************
- * Copyright (C) 2013, International Business Machines Corporation and *
+ * Copyright (C) 2013-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+@Deprecated
public class UFieldPosition extends FieldPosition {
private int countVisibleFractionDigits = -1;
private long fractionDigits = 0;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public UFieldPosition() {
super(-1);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public UFieldPosition(int field) {
super(field);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public UFieldPosition(Field attribute, int fieldID) {
super(attribute, fieldID);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public UFieldPosition(Field attribute) {
super(attribute);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public void setFractionDigits(int countVisibleFractionDigits, long fractionDigits ) {
this.countVisibleFractionDigits = countVisibleFractionDigits;
this.fractionDigits = fractionDigits;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public int getCountVisibleFractionDigits() {
return countVisibleFractionDigits;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public long getFractionDigits() {
return fractionDigits;
}
/*
*******************************************************************************
- * Copyright (C) 1996-2011, International Business Machines Corporation and *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected UnicodeFilter() {}
}
/*
*******************************************************************************
- * Copyright (C) 1996-2013, International Business Machines Corporation and *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public int matchesAt(CharSequence text, int offset) {
int lastLen = -1;
strings:
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String getRegexEquivalent() {
if (strings.size() == 0) {
return toString();
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public UnicodeSet applyPattern(String pattern,
ParsePosition pos,
SymbolTable symbols,
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static <T extends Comparable<T>> int compare(Iterator<T> first, Iterator<T> other) {
while (true) {
if (!first.hasNext()) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static int getSingleCodePoint(CharSequence s) {
return CharSequences.getSingleCodePoint(s);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public UnicodeSet addBridges(UnicodeSet dontCare) {
UnicodeSet notInInput = new UnicodeSet(this).complement();
for (UnicodeSetIterator it = new UnicodeSetIterator(notInInput); it.nextRange();) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public int findIn(CharSequence value, int fromIndex, boolean findNot) {
//TODO add strings, optimize, using ICU4C algorithms
int cp;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public int findLastIn(CharSequence value, int fromIndex, boolean findNot) {
//TODO add strings, optimize, using ICU4C algorithms
int cp;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String stripFrom(CharSequence source, boolean matches) {
StringBuilder result = new StringBuilder();
for (int pos = 0; pos < source.length();) {
/*
*******************************************************************************
- * Copyright (C) 1996-2010, International Business Machines Corporation and *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public UnicodeSet getSet() {
return set;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected int endElement;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected int nextElement;
private Iterator<String> stringIterator = null;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected void loadRange(int aRange) {
nextElement = set.getRangeStart(aRange);
endElement = set.getRangeEnd(aRange);
/*
*******************************************************************************
- * Copyright (C) 2007-2011, International Business Machines Corporation and *
+ * Copyright (C) 2007-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final int LOCAL_STD = 0x01;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final int LOCAL_DST = 0x03;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final int LOCAL_FORMER = 0x04;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final int LOCAL_LATTER = 0x0C;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected static final int STD_DST_MASK = 0x03;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected static final int FORMER_LATTER_MASK = 0x0C;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public void getOffsetFromLocal(long date,
int nonExistingTimeOpt, int duplicatedTimeOpt, int[] offsets) {
throw new IllegalStateException("Not implemented");
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected BasicTimeZone(String ID) {
super(ID);
}
/*
*******************************************************************************
-* Copyright (C) 2011-2013, International Business Machines
+* Copyright (C) 2011-2014, International Business Machines
* Corporation and others. All Rights Reserved.
*******************************************************************************
* created on: 2011jan05
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
protected boolean matchNodesCanHaveValues() /*const*/ { return false; }
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
protected int getMaxBranchLinearSubNodeLength() /*const*/ { return BytesTrie.kMaxBranchLinearSubNodeLength; }
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
protected int getMinLinearMatch() /*const*/ { return BytesTrie.kMinLinearMatch; }
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
protected int getMaxLinearMatchLength() /*const*/ { return BytesTrie.kMaxLinearMatchLength; }
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
protected int write(int b) {
int newLength=bytesLength+1;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
protected int write(int offset, int length) {
int newLength=bytesLength+length;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
protected int writeValueAndFinal(int i, boolean isFinal) {
if(0<=i && i<=BytesTrie.kMaxOneByteValue) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
protected int writeValueAndType(boolean hasValue, int value, int node) {
int offset=write(node);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
protected int writeDeltaTo(int jumpTarget) {
int i=bytesLength-jumpTarget;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static String getDateTimePattern(Calendar cal, ULocale uLocale, int dateStyle) {
PatternData patternData = PatternData.make(cal, uLocale);
return patternData.getDateTimePattern(dateStyle);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static class FormatConfiguration {
private String pattern;
private String override;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String getPatternString() {
return pattern;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String getOverrideString() {
return override;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public Calendar getCalendar() {
return cal;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public ULocale getLocale() {
return loc;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public DateFormatSymbols getDateFormatSymbols() {
return formatData;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public boolean haveDefaultCentury() {
return true;
}
/*
*******************************************************************************
-* Copyright (C) 2011-2013, International Business Machines
+* Copyright (C) 2011-2014, International Business Machines
* Corporation and others. All Rights Reserved.
*******************************************************************************
* created on: 2011jan07
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
protected boolean matchNodesCanHaveValues() /*const*/ { return true; }
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
protected int getMaxBranchLinearSubNodeLength() /*const*/ { return CharsTrie.kMaxBranchLinearSubNodeLength; }
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
protected int getMinLinearMatch() /*const*/ { return CharsTrie.kMinLinearMatch; }
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
protected int getMaxLinearMatchLength() /*const*/ { return CharsTrie.kMaxLinearMatchLength; }
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
protected int write(int unit) {
int newLength=charsLength+1;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
protected int write(int offset, int length) {
int newLength=charsLength+length;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
protected int writeValueAndFinal(int i, boolean isFinal) {
if(0<=i && i<=CharsTrie.kMaxOneUnitValue) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
protected int writeValueAndType(boolean hasValue, int value, int node) {
if(!hasValue) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
protected int writeDeltaTo(int jumpTarget) {
int i=charsLength-jumpTarget;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected ChineseCalendar(TimeZone zone, ULocale locale, int epochYear, TimeZone zoneAstroCalc) {
super(zone, locale);
this.epochYear = epochYear;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public boolean haveDefaultCentury() {
return false;
}
/*
*******************************************************************************
- * Copyright (C) 1996-2009, International Business Machines Corporation and *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+@Deprecated
public final class CompactByteArray implements Cloneable {
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final int UNICODECOUNT =65536;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public CompactByteArray()
{
this((byte)0);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public CompactByteArray(byte defaultValue)
{
int i;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public CompactByteArray(char indexArray[],
byte newValues[])
{
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public CompactByteArray(String indexArray,
String valueArray)
{
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public byte elementAt(char index)
{
return (values[(indices[index >> BLOCKSHIFT] & 0xFFFF)
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public void setElementAt(char index, byte value)
{
if (isCompact)
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public void setElementAt(char start, char end, byte value)
{
int i;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public void compact() {
compact(false);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public void compact(boolean exhaustive)
{
if (!isCompact) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public char[] getIndexArray()
{
return indices;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public byte[] getValueArray()
{
return values;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public Object clone()
{
try {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public boolean equals(Object obj) {
if (obj == null) return false;
if (this == obj) // quick check
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public int hashCode() {
int result = 0;
int increment = Math.min(3, values.length/16);
/*
*******************************************************************************
- * Copyright (C) 1996-2009, International Business Machines Corporation and *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+@Deprecated
public final class CompactCharArray implements Cloneable {
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final int UNICODECOUNT = 65536;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public CompactCharArray()
{
this((char)0);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public CompactCharArray(char defaultValue)
{
int i;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public CompactCharArray(char indexArray[],
char newValues[])
{
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public CompactCharArray(String indexArray,
String valueArray)
{
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public char elementAt(char index)
{
int ix = (indices[index >> BLOCKSHIFT] & 0xFFFF)
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public void setElementAt(char index, char value)
{
if (isCompact)
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public void setElementAt(char start, char end, char value)
{
int i;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public void compact() {
compact(true);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public void compact(boolean exhaustive)
{
if (!isCompact) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public char[] getIndexArray()
{
return indices;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public char[] getValueArray()
{
return values;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public Object clone()
{
try {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public boolean equals(Object obj) {
if (obj == null) return false;
if (this == obj) // quick check
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public int hashCode() {
int result = 0;
int increment = Math.min(3, values.length/16);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final int BLOCKSHIFT = 5; // NormalizerBuilder needs - liu
static final int BLOCKCOUNT =(1<<BLOCKSHIFT);
static final int INDEXSHIFT =(16-BLOCKSHIFT);
/*
*******************************************************************************
- * Copyright (C) 2005-2008, International Business Machines Corporation and *
+ * Copyright (C) 2005-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected int handleGetExtendedYear() {
int eyear;
if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected void handleComputeFields(int julianDay) {
int era, year;
int[] fields = new int[3];
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected int getJDEpochOffset() {
return JD_EPOCH_OFFSET;
}
/**
*******************************************************************************
- * Copyright (C) 2001-2013, International Business Machines Corporation and *
+ * Copyright (C) 2001-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static String parse(ULocale locale, String text, int type, ParsePosition pos) {
List<TextTrieMap<CurrencyStringInfo>> currencyTrieVec = CURRENCY_NAME_CACHE.get(locale);
if (currencyTrieVec == null) {
/*
*******************************************************************************
- * Copyright (C) 2012, International Business Machines Corporation and *
+ * Copyright (C) 2012-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+@Deprecated
public class DangiCalendar extends ChineseCalendar {
private static final long serialVersionUID = 8156297445349501985L;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public DangiCalendar() {
this(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT));
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public DangiCalendar(Date date) {
this(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT));
setTime(date);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public DangiCalendar(TimeZone zone, ULocale locale) {
super(zone, locale, DANGI_EPOCH_YEAR, KOREA_ZONE);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String getType() {
return "dangi";
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected int handleGetExtendedYear() {
// Ethiopic calendar uses EXTENDED_YEAR aligned to
// Amelete Mihret year always.
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected void handleComputeFields(int julianDay) {
int era, year;
int[] fields = new int[3];
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected int handleGetLimit(int field, int limitType) {
if (isAmeteAlemEra() && field == ERA) {
return 0; // Only one era in this mode, era is always 0
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected int getJDEpochOffset() {
return JD_EPOCH_OFFSET_AMETE_MIHRET;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+@Deprecated
public class GenderInfo {
private final ListGenderStyle style; // set based on locale
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public enum Gender {
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
MALE,
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
FEMALE,
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
OTHER
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static GenderInfo getInstance(ULocale uLocale) {
return genderInfoCache.get(uLocale);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static GenderInfo getInstance(Locale locale) {
return getInstance(ULocale.forLocale(locale));
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public enum ListGenderStyle {
/**
* For an empty list, returns OTHER;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
NEUTRAL,
/**
* For an empty list, returns OTHER;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
MIXED_NEUTRAL,
/**
* For an empty list, returns OTHER;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
MALE_TAINTS;
private static Map<String, ListGenderStyle> fromNameMap =
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static ListGenderStyle fromName(String name) {
ListGenderStyle result = fromNameMap.get(name);
if (result == null) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public Gender getListGender(Gender... genders) {
return getListGender(Arrays.asList(genders));
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public Gender getListGender(List<Gender> genders) {
if (genders.size() == 0) {
return Gender.OTHER; // degenerate case
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public GenderInfo(ListGenderStyle genderStyle) {
style = genderStyle;
}
/*
*******************************************************************************
- * Copyright (C) 1996-2013, International Business Machines Corporation and
+ * Copyright (C) 1996-2014, International Business Machines Corporation and
* others. All Rights Reserved.
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static boolean isLeapYear(int year) {
//return (year * 12 + 17) % 19 >= 12;
int x = (year*12 + 17) % 19;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public boolean haveDefaultCentury() {
return false;
}
/*
**************************************************************************************
- * Copyright (C) 2009-2013, Google, Inc.; International Business Machines Corporation *
+ * Copyright (C) 2009-2014, Google, Inc.; International Business Machines Corporation *
* and others. All Rights Reserved. *
**************************************************************************************
*/
* Note: This type is no longer supported.
* @deprecated ICU 51
*/
+ @Deprecated
public static final int ES_CURRENCY = 3;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public LocaleMatcher(LocalePriorityList languagePriorityList, LanguageMatcherData matcherData) {
this(languagePriorityList, matcherData, DEFAULT_THRESHOLD);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public LocaleMatcher(LocalePriorityList languagePriorityList, LanguageMatcherData matcherData, double threshold) {
this.matcherData = matcherData;
for (final ULocale language : languagePriorityList) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public ULocale getBestMatch(ULocale... ulocales) {
return getBestMatch(LocalePriorityList.add(ulocales).build());
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static class LanguageMatcherData implements Freezable<LanguageMatcherData> {
ScoreData languageScores = new ScoreData(Level.language);
ScoreData scriptScores = new ScoreData(Level.script);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public LanguageMatcherData() {
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String toString() {
return languageScores + "\n\t" + scriptScores + "\n\t" + regionScores;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
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());
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
private LanguageMatcherData addDistance(String desired, String supported, int percent) {
return addDistance(desired, supported, percent, false, null);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public LanguageMatcherData addDistance(String desired, String supported, int percent, String comment) {
return addDistance(desired, supported, percent, false, comment);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public LanguageMatcherData addDistance(String desired, String supported, int percent, boolean oneway) {
return addDistance(desired, supported, percent, oneway, null);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public LanguageMatcherData cloneAsThawed() {
LanguageMatcherData result;
try {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public LanguageMatcherData freeze() {
return this;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public boolean isFrozen() {
return frozen;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static ICUResourceBundle getICUSupplementalData() {
ICUResourceBundle suppData = (ICUResourceBundle) UResourceBundle.getBundleInstance(
ICUResourceBundle.ICU_BASE_NAME,
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static double match(ULocale a, ULocale b) {
final LocaleMatcher matcher = new LocaleMatcher("");
return matcher.match(a, matcher.addLikelySubtags(a), b, matcher.addLikelySubtags(b));
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected final String type;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected final String subType;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected MeasureUnit(String type, String subType) {
this.type = type;
this.subType = subType;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static MeasureUnit internalGetInstance(String type, String subType) {
if (type == null || subType == null) {
throw new NullPointerException("Type and subType must be non-null");
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected interface Factory {
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
MeasureUnit create(String type, String subType);
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected synchronized static MeasureUnit addUnit(String type, String unitName, Factory factory) {
Map<String, MeasureUnit> tmp = cache.get(type);
if (tmp == null) {
/**
*******************************************************************************
- * Copyright (C) 2001-2009, International Business Machines Corporation and *
+ * Copyright (C) 2001-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated ICU 2.4. This class may be removed or modified.
*/
+@Deprecated
// prepare to deprecate in next release
///CLOVER:OFF
public class OverlayBundle extends ResourceBundle {
* @internal
* @deprecated ICU 2.4. This class may be removed or modified.
*/
+ @Deprecated
public OverlayBundle(String[] baseNames,
Locale locale) {
this.baseNames = baseNames;
* bundles[i].getObject().
* @internal
* @deprecated ICU 2.4. This class may be removed or modified.
- */
- protected Object handleGetObject(String key)
+ */
+ @Deprecated
+ protected Object handleGetObject(String key)
throws MissingResourceException {
Object o = null;
* @internal
* @deprecated ICU 2.4. This class may be removed or modified.
*/
+ @Deprecated
public Enumeration<String> getKeys() {
// Return the enumeration of the last bundle, which is the base
// of our hierarchy stack.
/*
*******************************************************************************
- * Copyright (C) 1996-2012, International Business Machines Corporation and *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+@Deprecated
public class PersianCalendar extends Calendar {
private static final long serialVersionUID = -6727306982975111643L;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public PersianCalendar()
{
this(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT));
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public PersianCalendar(TimeZone zone)
{
this(zone, ULocale.getDefault(Category.FORMAT));
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public PersianCalendar(Locale aLocale)
{
this(TimeZone.getDefault(), aLocale);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public PersianCalendar(ULocale locale)
{
this(TimeZone.getDefault(), locale);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public PersianCalendar(TimeZone zone, Locale aLocale)
{
super(zone, aLocale);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public PersianCalendar(TimeZone zone, ULocale locale)
{
super(zone, locale);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public PersianCalendar(Date date) {
super(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT));
this.setTime(date);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public PersianCalendar(int year, int month, int date)
{
super(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT));
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public PersianCalendar(int year, int month, int date, int hour,
int minute, int second)
{
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected int handleGetLimit(int field, int limitType) {
return LIMITS[field][limitType];
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected int handleGetMonthLength(int extendedYear, int month) {
// If the month is out of range, adjust it into range, and
// modify the extended year value accordingly.
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected int handleGetYearLength(int extendedYear) {
return isLeapYear(extendedYear) ? 366 : 365;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected int handleComputeMonthStart(int eyear, int month, boolean useMonth) {
// If the month is out of range, adjust it into range, and
// modify the extended year value accordingly.
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected int handleGetExtendedYear() {
int year;
if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected void handleComputeFields(int julianDay) {
int year, month, dayOfMonth, dayOfYear;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String getType() {
return "persian";
}
/*
*******************************************************************************
- * Copyright (C) 2007-2013, International Business Machines Corporation and *
+ * Copyright (C) 2007-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
public void getOffsetFromLocal(long date,
int nonExistingTimeOpt, int duplicatedTimeOpt, int[] offsets) {
/*
-* Copyright (C) 1996-2013, International Business Machines
+* Copyright (C) 1996-2014, International Business Machines
* Corporation and others. All Rights Reserved.
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public int getOffset(int era, int year, int month, int day,
int dayOfWeek, int millis,
int monthLength) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public void getOffsetFromLocal(long date,
int nonExistingTimeOpt, int duplicatedTimeOpt, int[] offsets) {
offsets[0] = getRawOffset();
/**
*******************************************************************************
-* Copyright (C) 1996-2011, International Business Machines Corporation and *
+* Copyright (C) 1996-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public StringTokenizer(String str, UnicodeSet delim, boolean returndelims, boolean coalescedelims)
{
m_source_ = str;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public StringTokenizer(String str, String delim, boolean returndelims, boolean coalescedelims)
{
// don't ignore whitespace
/*
*******************************************************************************
-* Copyright (C) 2011-2012, International Business Machines
+* Copyright (C) 2011-2014, International Business Machines
* Corporation and others. All Rights Reserved.
*******************************************************************************
* created on: 2011jan05
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected StringTrieBuilder() {}
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected void addImpl(CharSequence s, int value) {
if(state!=State.ADDING) {
// Cannot add elements after building.
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected final void buildImpl(Option buildOption) {
switch(state) {
case ADDING:
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected void clearImpl() {
strings.setLength(0);
nodes.clear();
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected abstract boolean matchNodesCanHaveValues() /*const*/;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected abstract int getMaxBranchLinearSubNodeLength() /*const*/;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected abstract int getMinLinearMatch() /*const*/;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected abstract int getMaxLinearMatchLength() /*const*/;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected abstract int write(int unit);
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected abstract int write(int offset, int length);
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected abstract int writeValueAndFinal(int i, boolean isFinal);
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected abstract int writeValueAndType(boolean hasValue, int value, int node);
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected abstract int writeDeltaTo(int jumpTarget);
private enum State {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected StringBuilder strings=new StringBuilder();
private Node root;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected TimeZone(String ID) {
if (ID == null) {
throw new NullPointerException();
* {@icu} Returns this locale's script localized for display in the default <code>DISPLAY</code> locale.
* @return the localized script name.
* @see Category#DISPLAY
- * @internal ICU 49
+ * @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String getDisplayScriptInContext() {
return getDisplayScriptInContextInternal(this, getDefault(Category.DISPLAY));
}
* {@icu} Returns this locale's script localized for display in the provided locale.
* @param displayLocale the locale in which to display the name.
* @return the localized script name.
- * @internal ICU 49
+ * @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String getDisplayScriptInContext(ULocale displayLocale) {
return getDisplayScriptInContextInternal(this, displayLocale);
}
* @param localeID the id of the locale whose script will be displayed
* @param displayLocaleID the id of the locale in which to display the name.
* @return the localized script name.
- * @internal ICU 49
+ * @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static String getDisplayScriptInContext(String localeID, String displayLocaleID) {
return getDisplayScriptInContextInternal(new ULocale(localeID), new ULocale(displayLocaleID));
}
* @param localeID the id of the locale whose script will be displayed.
* @param displayLocale the locale in which to display the name.
* @return the localized script name.
- * @internal ICU 49
+ * @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static String getDisplayScriptInContext(String localeID, ULocale displayLocale) {
return getDisplayScriptInContextInternal(new ULocale(localeID), displayLocale);
}
/*
*******************************************************************************
- * Copyright (C) 2004-2013, International Business Machines Corporation and *
+ * Copyright (C) 2004-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static void resetBundleCache() {
/*
* A HACK!!!!!
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected static UResourceBundle addToCache(ClassLoader cl, String fullName,
ULocale defaultLocale, UResourceBundle b) {
synchronized(cacheKey){
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected static UResourceBundle loadFromCache(ClassLoader cl, String fullName,
ULocale defaultLocale){
synchronized(cacheKey){
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected UResourceBundle findTopLevel(String aKey) {
// NOTE: this only works for top-level resources. For resources at lower
// levels, it fails when you fall back to the parent, since you're now
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected UResourceBundle findTopLevel(int index) {
// NOTE: this _barely_ works for top-level resources. For resources at lower
// levels, it fails when you fall back to the parent, since you're now
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public Set<String> keySet() {
if(keys == null) {
if(isTopLevelResource()) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected Set<String> handleKeySet() {
return Collections.emptySet();
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected abstract void setLoadingStatus(int newStatus);
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected boolean isTopLevelResource() {
return true;
}
/*
*********************************************************************************
- * Copyright (C) 2004-2010, International Business Machines Corporation and *
+ * Copyright (C) 2004-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*********************************************************************************
*
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final int EPOCH_OFFSET_MINUS_1_VALUE = 7;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final int UNITS_ROUND_VALUE = 8;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final int MIN_ROUND_VALUE = 9;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final int MAX_ROUND_VALUE = 10;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final int MAX_SCALE_VALUE = 11;
private static final long ticks = 1;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static BigDecimal toBigDecimalTrunc(BigDecimal universalTime, int timeScale)
{
TimeScaleData data = getTimeScaleData(timeScale);
/*
*******************************************************************************
- * Copyright (C) 2007-2013, International Business Machines Corporation and *
+ * Copyright (C) 2007-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
public void getOffsetFromLocal(long date,
int nonExistingTimeOpt, int duplicatedTimeOpt, int[] offsets) {
/*
*******************************************************************************
- * Copyright (C) 1996-2013, International Business Machines Corporation and
+ * Copyright (C) 1996-2014, International Business Machines Corporation and
* others. All Rights Reserved.
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final String ICU_DATA_VERSION_PATH = "53b";
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static final VersionInfo ICU_DATA_VERSION;
/**
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static VersionInfo javaVersion() {
if (javaVersion == null) {
synchronized(VersionInfo.class) {
/*
*******************************************************************************
- * Copyright (C) 1996-2011, International Business Machines Corporation and *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+@Deprecated
public class RuleBasedTransliterator extends Transliterator {
private Data data;
- /**
- * Constructs a new transliterator from the given rules.
- * @param rules rules, separated by ';'
- * @param direction either FORWARD or REVERSE.
- * @exception IllegalArgumentException if rules are malformed
- * or direction is invalid.
- * @internal
- * @deprecated This API is ICU internal only.
- */
- /*public RuleBasedTransliterator(String ID, String rules, int direction,
- UnicodeFilter filter) {
- super(ID, filter);
- if (direction != FORWARD && direction != REVERSE) {
- throw new IllegalArgumentException("Invalid direction");
- }
-
- TransliteratorParser parser = new TransliteratorParser();
- parser.parse(rules, direction);
- if (parser.idBlockVector.size() != 0 ||
- parser.compoundFilter != null) {
- throw new IllegalArgumentException("::ID blocks illegal in RuleBasedTransliterator constructor");
- }
-
- data = (Data)parser.dataVector.get(0);
- setMaximumContextLength(data.ruleSet.getMaximumContextLength());
- }*/
+// /**
+// * Constructs a new transliterator from the given rules.
+// * @param rules rules, separated by ';'
+// * @param direction either FORWARD or REVERSE.
+// * @exception IllegalArgumentException if rules are malformed
+// * or direction is invalid.
+// */
+// public RuleBasedTransliterator(String ID, String rules, int direction,
+// UnicodeFilter filter) {
+// super(ID, filter);
+// if (direction != FORWARD && direction != REVERSE) {
+// throw new IllegalArgumentException("Invalid direction");
+// }
+//
+// TransliteratorParser parser = new TransliteratorParser();
+// parser.parse(rules, direction);
+// if (parser.idBlockVector.size() != 0 ||
+// parser.compoundFilter != null) {
+// throw new IllegalArgumentException("::ID blocks illegal in RuleBasedTransliterator constructor");
+// }
+//
+// data = (Data)parser.dataVector.get(0);
+// setMaximumContextLength(data.ruleSet.getMaximumContextLength());
+// }
- /**
- * Constructs a new transliterator from the given rules in the
- * <code>FORWARD</code> direction.
- * @param rules rules, separated by ';'
- * @exception IllegalArgumentException if rules are malformed
- * or direction is invalid.
- * @internal
- * @deprecated This API is ICU internal only.
- */
- /*public RuleBasedTransliterator(String ID, String rules) {
- this(ID, rules, FORWARD, null);
- }*/
+// /**
+// * Constructs a new transliterator from the given rules in the
+// * <code>FORWARD</code> direction.
+// * @param rules rules, separated by ';'
+// * @exception IllegalArgumentException if rules are malformed
+// * or direction is invalid.
+// */
+// public RuleBasedTransliterator(String ID, String rules) {
+// this(ID, rules, FORWARD, null);
+// }
RuleBasedTransliterator(String ID, Data data, UnicodeFilter filter) {
super(ID, filter);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
protected void handleTransliterate(Replaceable text,
Position index, boolean incremental) {
/* We keep start and limit fixed the entire time,
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public String toRules(boolean escapeUnprintable) {
return data.ruleSet.toRules(escapeUnprintable);
}
// /**
// * Return the set of all characters that may be modified by this
// * Transliterator, ignoring the effect of our filter.
-// * @internal
-// * @deprecated This API is ICU internal only.
// */
// protected UnicodeSet handleGetSourceSet() {
// return data.ruleSet.getSourceTargetSet(false, unicodeFilter);
// /**
// * Returns the set of all characters that may be generated as
// * replacement text by this transliterator.
-// * @internal
-// * @deprecated This API is ICU internal only.
// */
// public UnicodeSet getTargetSet() {
// return data.ruleSet.getSourceTargetSet(true, unicodeFilter);
/**
* @internal
+ * @deprecated This API is ICU internal only.
*/
+ @Deprecated
@Override
public void addSourceTargetSet(UnicodeSet filter, UnicodeSet sourceSet, UnicodeSet targetSet) {
data.ruleSet.addSourceTargetSet(filter, sourceSet, targetSet);
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public Transliterator safeClone() {
UnicodeFilter filter = getFilter();
if (filter != null && filter instanceof UnicodeSet) {
/*
*******************************************************************************
- * Copyright (C) 1996-2011, International Business Machines Corporation and *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public int hashCode() {
assert false : "hashCode not designed";
return 42;
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
public static void registerAny() {
AnyTransliterator.register();
}