From: Yoshito Umaoka Date: Wed, 3 Sep 2014 16:24:00 +0000 (+0000) Subject: ICU-11065 Deprecated RbnfLenientScanner X-Git-Tag: milestone-59-0-1~1643 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6974934996fd6b6797cb08516b8e1caa47dbda6;p=icu ICU-11065 Deprecated RbnfLenientScanner X-SVN-Rev: 36332 --- diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/RbnfLenientScanner.java b/icu4j/main/classes/core/src/com/ibm/icu/text/RbnfLenientScanner.java index ba875f7a341..3af53ce5cc2 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/RbnfLenientScanner.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/RbnfLenientScanner.java @@ -1,6 +1,6 @@ /* ******************************************************************************* - * Copyright (C) 2009-2012, International Business Machines Corporation and * + * Copyright (C) 2009-2014, International Business Machines Corporation and * * others. All Rights Reserved. * ******************************************************************************* */ @@ -10,8 +10,9 @@ package com.ibm.icu.text; /** * Used by RBNF to leniently parse a string. * - * @stable ICU 4.4 + * @deprecated ICU 54 */ +@Deprecated public interface RbnfLenientScanner { /** * Returns true if a string consists entirely of ignorable @@ -19,8 +20,9 @@ public interface RbnfLenientScanner { * @param s The string to test * @return true if the string is empty or consists entirely of * characters that are ignorable. - * @stable ICU 4.4 + * @deprecated ICU 54 */ + @Deprecated boolean allIgnorable(String s); /** @@ -33,8 +35,9 @@ public interface RbnfLenientScanner { * @param str The string being tested * @param prefix The text we're hoping to see at the beginning of "str" * @return the number of characters in "str" that were matched - * @stable ICU 4.4 + * @deprecated ICU 54 */ + @Deprecated int prefixLength(String str, String prefix); /** @@ -48,7 +51,8 @@ public interface RbnfLenientScanner { * of the match, or -1 if there was no match. Element 1 is the * number of characters in "str" that matched (which isn't necessarily * the same as the length of "key") - * @stable ICU 4.4 + * @deprecated ICU 54 */ + @Deprecated int[] findText(String str, String key, int startingAt); } \ No newline at end of file diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/RbnfLenientScannerProvider.java b/icu4j/main/classes/core/src/com/ibm/icu/text/RbnfLenientScannerProvider.java index 92b45de33bc..3d23f90fb5d 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/RbnfLenientScannerProvider.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/RbnfLenientScannerProvider.java @@ -1,6 +1,6 @@ /* ******************************************************************************* - * Copyright (C) 2009-2012, International Business Machines Corporation and * + * Copyright (C) 2009-2014, International Business Machines Corporation and * * others. All Rights Reserved. * ******************************************************************************* */ @@ -12,17 +12,19 @@ import com.ibm.icu.util.ULocale; /** * A provider for an RbnfLenientScanner. * - * @stable ICU 4.4 + * @deprecated ICU 54 */ +@Deprecated public interface RbnfLenientScannerProvider { - /** - * Returns a scanner appropriate for the given locale, with optional extra data. - * in the form of collation rules. - * - * @param locale the locale to provide the default lenient rules. - * @param extras extra collation rules - * @return the lenient scanner, or null - * @stable ICU 4.4 - */ - RbnfLenientScanner get(ULocale locale, String extras); + /** + * Returns a scanner appropriate for the given locale, with optional extra data. + * in the form of collation rules. + * + * @param locale the locale to provide the default lenient rules. + * @param extras extra collation rules + * @return the lenient scanner, or null + * @deprecated ICU 54 + */ + @Deprecated + RbnfLenientScanner get(ULocale locale, String extras); } \ No newline at end of file