]> granicus.if.org Git - icu/commitdiff
ICU-11065 Deprecated RbnfLenientScanner
authorYoshito Umaoka <y.umaoka@gmail.com>
Wed, 3 Sep 2014 16:24:00 +0000 (16:24 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Wed, 3 Sep 2014 16:24:00 +0000 (16:24 +0000)
X-SVN-Rev: 36332

icu4j/main/classes/core/src/com/ibm/icu/text/RbnfLenientScanner.java
icu4j/main/classes/core/src/com/ibm/icu/text/RbnfLenientScannerProvider.java

index ba875f7a3415e82daa9d5ea1e691eff4f5271585..3af53ce5cc2e436d9b2642c6ea67654240f3dc09 100644 (file)
@@ -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
index 92b45de33bcb824a664f33b964e1c1b118fc409a..3d23f90fb5d71be854112fce733f52a2c54a7278 100644 (file)
@@ -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