]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - jars/icu4j-52_1/main/classes/core/src/com/ibm/icu/impl/TextTrieMap.java
Upgrade ICU4J.
[Dictionary.git] / jars / icu4j-52_1 / main / classes / core / src / com / ibm / icu / impl / TextTrieMap.java
similarity index 97%
rename from jars/icu4j-4_8_1_1/main/classes/core/src/com/ibm/icu/impl/TextTrieMap.java
rename to jars/icu4j-52_1/main/classes/core/src/com/ibm/icu/impl/TextTrieMap.java
index 412ed888555ab76fca35591e5ecde618f771168b..2838b6febd1df827797d9c3ffb6f76fa288aa77b 100644 (file)
@@ -67,11 +67,11 @@ public class TextTrieMap<V> {
      * longest prefix matching matching key, or null if no 
      * matching entry is found.
      */
-    public Iterator<V> get(String text, int start) {
+    public Iterator<V> get(CharSequence text, int start) {
         return get(text, start, null);
     }
 
-    public Iterator<V> get(String text, int start, int[] matchLen) {
+    public Iterator<V> get(CharSequence text, int start, int[] matchLen) {
         LongestMatchHandler<V> handler = new LongestMatchHandler<V>();
         find(text, start, handler);
         if (matchLen != null && matchLen.length > 0) {
@@ -80,11 +80,11 @@ public class TextTrieMap<V> {
         return handler.getMatches();
     }
 
-    public void find(String text, ResultHandler<V> handler) {
+    public void find(CharSequence text, ResultHandler<V> handler) {
         find(text, 0, handler);
     }
     
-    public void find(String text, int offset, ResultHandler<V> handler) {
+    public void find(CharSequence text, int offset, ResultHandler<V> handler) {
         CharIterator chitr = new CharIterator(text, offset, _ignoreCase);
         find(_root, chitr, handler);
     }