1 /* GENERATED SOURCE. DO NOT MODIFY. */ 2 /* 3 ******************************************************************************* 4 * Copyright (C) 2009-2014, International Business Machines Corporation and * 5 * others. All Rights Reserved. * 6 ******************************************************************************* 7 */ 8 9 package android.icu.text; 10 11 /** 12 * Used by RBNF to leniently parse a string. 13 * 14 * @deprecated ICU 54 15 * @hide Only a subset of ICU is exposed in Android 16 */ 17 @Deprecated 18 public interface RbnfLenientScanner { 19 /** 20 * Returns true if a string consists entirely of ignorable 21 * characters. 22 * @param s The string to test 23 * @return true if the string is empty or consists entirely of 24 * characters that are ignorable. 25 * @deprecated ICU 54 26 */ 27 @Deprecated allIgnorable(String s)28 boolean allIgnorable(String s); 29 30 /** 31 * Matches characters in a string against a prefix and return 32 * the number of chars that matched, or 0 if no match. Only 33 * primary-order differences are significant in determining 34 * whether there's a match. This means that the returned 35 * value need not be the same as the length of the prefix. 36 * 37 * @param str The string being tested 38 * @param prefix The text we're hoping to see at the beginning of "str" 39 * @return the number of characters in "str" that were matched 40 * @deprecated ICU 54 41 */ 42 @Deprecated prefixLength(String str, String prefix)43 int prefixLength(String str, String prefix); 44 45 /** 46 * Searches a string for another string. This might use a 47 * Collator to compare strings, or just do a simple match. 48 * @param str The string to search 49 * @param key The string to search "str" for 50 * @param startingAt The index into "str" where the search is to 51 * begin 52 * @return A two-element array of ints. Element 0 is the position 53 * of the match, or -1 if there was no match. Element 1 is the 54 * number of characters in "str" that matched (which isn't necessarily 55 * the same as the length of "key") 56 * @deprecated ICU 54 57 */ 58 @Deprecated findText(String str, String key, int startingAt)59 int[] findText(String str, String key, int startingAt); 60 }