Package com.ibm.icu.impl.breakiter
Class BytesDictionaryMatcher
- java.lang.Object
-
- com.ibm.icu.impl.breakiter.DictionaryMatcher
-
- com.ibm.icu.impl.breakiter.BytesDictionaryMatcher
-
class BytesDictionaryMatcher extends DictionaryMatcher
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
characters
private int
transform
-
Constructor Summary
Constructors Constructor Description BytesDictionaryMatcher(byte[] chars, int transform)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getType()
int
matches(java.text.CharacterIterator text_, int maxLength, int[] lengths, int[] count_, int limit, int[] values)
Find dictionary words that match the text.private int
transform(int c)
-
Methods inherited from class com.ibm.icu.impl.breakiter.DictionaryMatcher
matches
-
-
-
-
Method Detail
-
transform
private int transform(int c)
-
matches
public int matches(java.text.CharacterIterator text_, int maxLength, int[] lengths, int[] count_, int limit, int[] values)
Description copied from class:DictionaryMatcher
Find dictionary words that match the text.- Specified by:
matches
in classDictionaryMatcher
- Parameters:
text_
- A CharacterIterator representing the text. The iterator is left after the longest prefix match in the dictionary.maxLength
- The maximum number of code units to match.lengths
- An array that is filled with the lengths of words that matched.count_
- Filled with the number of elements output in lengths.limit
- The maximum amount of words to output. Must be less than or equal to lengths.length.values
- Filled with the weight values associated with the various words.- Returns:
- The number of characters in text that were matched.
-
getType
public int getType()
- Specified by:
getType
in classDictionaryMatcher
- Returns:
- the kind of dictionary that this matcher is using
-
-