Class NGramParser
- java.lang.Object
-
- com.ibm.icu.dev.tool.charsetdet.sbcs.NGramParser
-
public class NGramParser extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
NGramParser.NGramParserClient
(package private) static class
NGramParser.StateEntry
-
Field Summary
Fields Modifier and Type Field Description private static int
A_ADDC
private static int
A_ADDS
private static int
A_NULL
static int
C_IGNORE
static int
C_LETTER
static int
C_PUNCT
private NGramParser.NGramParserClient
client
private int
letterCount
private char[]
letters
private static UnicodeSet
letterSet
protected int
N_GRAM_SIZE
private static int
S_LETTER
private static int
S_PUNCT
private static int
S_START
private NGramParser.StateEntry[][]
stateTable
-
Constructor Summary
Constructors Constructor Description NGramParser(NGramParser.NGramParserClient theClient)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLetter(char letter)
static int
getCharClass(char ch)
void
parse()
void
reset()
void
setClient(NGramParser.NGramParserClient theClient)
-
-
-
Field Detail
-
A_NULL
private static final int A_NULL
- See Also:
- Constant Field Values
-
A_ADDC
private static final int A_ADDC
- See Also:
- Constant Field Values
-
A_ADDS
private static final int A_ADDS
- See Also:
- Constant Field Values
-
C_IGNORE
public static final int C_IGNORE
- See Also:
- Constant Field Values
-
C_LETTER
public static final int C_LETTER
- See Also:
- Constant Field Values
-
C_PUNCT
public static final int C_PUNCT
- See Also:
- Constant Field Values
-
S_START
private static final int S_START
- See Also:
- Constant Field Values
-
S_LETTER
private static final int S_LETTER
- See Also:
- Constant Field Values
-
S_PUNCT
private static final int S_PUNCT
- See Also:
- Constant Field Values
-
stateTable
private NGramParser.StateEntry[][] stateTable
-
N_GRAM_SIZE
protected final int N_GRAM_SIZE
- See Also:
- Constant Field Values
-
letters
private char[] letters
-
letterCount
private int letterCount
-
letterSet
private static UnicodeSet letterSet
-
client
private NGramParser.NGramParserClient client
-
-
Constructor Detail
-
NGramParser
public NGramParser(NGramParser.NGramParserClient theClient)
-
-
Method Detail
-
setClient
public void setClient(NGramParser.NGramParserClient theClient)
-
getCharClass
public static int getCharClass(char ch)
-
reset
public void reset()
-
addLetter
public void addLetter(char letter)
-
parse
public void parse()
-
-