mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-16 10:17:23 +00:00
ICU-11065 Deprecated RbnfLenientScanner
X-SVN-Rev: 36332
This commit is contained in:
parent
7952938f2e
commit
b697493499
2 changed files with 23 additions and 17 deletions
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
Loading…
Add table
Reference in a new issue