Class CharsetRecog_sbcs.NGramParser
java.lang.Object
com.ibm.icu.text.CharsetRecog_sbcs.NGramParser
- Direct Known Subclasses:
CharsetRecog_sbcs.NGramParser_IBM420
- Enclosing class:
CharsetRecog_sbcs
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected byte[]private intprivate static final intprivate intprivate intprivate int[]protected byte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddByte(int b) private voidlookup(int thisNgram) private intnextByte(CharsetDetector det) intparse(CharsetDetector det) intparse(CharsetDetector det, byte spaceCh) protected voidprivate static intsearch(int[] table, int value)
-
Field Details
-
N_GRAM_MASK
private static final int N_GRAM_MASK- See Also:
-
byteIndex
protected int byteIndex -
ngram
private int ngram -
ngramList
private int[] ngramList -
byteMap
protected byte[] byteMap -
ngramCount
private int ngramCount -
hitCount
private int hitCount -
spaceChar
protected byte spaceChar
-
-
Constructor Details
-
NGramParser
public NGramParser(int[] theNgramList, byte[] theByteMap)
-
-
Method Details
-
search
private static int search(int[] table, int value) -
lookup
private void lookup(int thisNgram) -
addByte
protected void addByte(int b) -
nextByte
-
parseCharacters
-
parse
-
parse
-