/*
*******************************************************************************
- * Copyright (C) 2009-2012, International Business Machines Corporation and *
+ * Copyright (C) 2009-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
/**
* 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
* @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);
/**
* @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);
/**
* 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
/*
*******************************************************************************
- * Copyright (C) 2009-2012, International Business Machines Corporation and *
+ * Copyright (C) 2009-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
/**
* 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