| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final String | |
| private static final int[] | |
| private static final int[][] | |
| public static final GB18030Encoding |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public int | codeToMbc(int code, byte[] bytes, int p)
Implements abstract org. |
| public int | codeToMbcLength(int code)
Implements abstract org. code_to_mbclen
|
| public int[] | ctypeCodeRange(int ctype, IntHolder sbOut)
Implements abstract org. get_ctype_code_range
|
| public String | getCharsetName()
Overrides org. |
| public boolean | isCodeCType(int
a code point of a character code, int a character type to check against
Oniguruma equivalent: ctype)is_code_ctypeImplements abstract org. |
| public boolean | isReverseMatchAllowed(byte[] bytes, int p, int end)
Implements abstract org. is_allowed_reverse_match
|
| public int | leftAdjustCharHead(byte[]
byte stream bytes, int position start, int stop s, int end end)Implements abstract org. left_adjust_char_head
|
| public int | length(byte[] bytes, int p, int end)
Implements abstract org. 1 for singlebyte encodings or performs sanity validations for multibyte ones
and returns the character length, missing characters in the stream otherwise
|
| private int | |
| private int | |
| public int | mbcCaseFold(int
case fold flag flag, byte[] bytes, IntHolder an pp, int end, byte[] IntHolder that points at character heada buffer where to extract case folded character
Oniguruma equivalent: lower)mbc_case_foldOverrides org. |
| public int | mbcToCode(byte[] bytes, int p, int end)
Implements abstract org. mbc_to_code
|
| C1 | back to summary |
|---|---|
| private static final int C1 | |
| C2 | back to summary |
|---|---|
| private static final int C2 | |
| C4 | back to summary |
|---|---|
| private static final int C4 | |
| CM | back to summary |
|---|---|
| private static final int CM | |
| GB18030 | back to summary |
|---|---|
| private static final String GB18030 | |
| GB18030_MAP | back to summary |
|---|---|
| private static final int[] GB18030_MAP | |
| GB18030Trans | back to summary |
|---|---|
| private static final int[][] GB18030Trans | |
| INSTANCE | back to summary |
|---|---|
| public static final GB18030Encoding INSTANCE | |
| GB18030Encoding | back to summary |
|---|---|
| protected GB18030Encoding() | |
| codeToMbc | back to summary |
|---|---|
| public int codeToMbc(int code, byte[] bytes, int p) Implements abstract org. Doc from org. Extracts code point into it's multibyte representation
| |
| codeToMbcLength | back to summary |
|---|---|
| public int codeToMbcLength(int code) Implements abstract org. Doc from org. Returns character length given a code point
Oniguruma equivalent:
| |
| ctypeCodeRange | back to summary |
|---|---|
| public int[] ctypeCodeRange(int ctype, IntHolder sbOut) Implements abstract org. Doc from org. Returns code range for a given character type
Oniguruma equivalent:
| |
| getCharsetName | back to summary |
|---|---|
| public String getCharsetName() Overrides org. Doc from org. The name of the equivalent Java Charset for this encoding. Defaults to the name of the encoding. Subclasses can override this to provide a different name. | |
| isCodeCType | back to summary |
|---|---|
| public boolean isCodeCType(int code, int ctype) Implements abstract org. Doc from org. Perform a check whether given code is of given character type (e.g. used by isWord(someByte) and similar methods)
| |
| isReverseMatchAllowed | back to summary |
|---|---|
| public boolean isReverseMatchAllowed(byte[] bytes, int p, int end) Implements abstract org. Doc from org. Returns true if it's safe to use reversal Boyer-Moore search fail fast algorithm
Oniguruma equivalent:
| |
| leftAdjustCharHead | back to summary |
|---|---|
| public int leftAdjustCharHead(byte[] bytes, int start, int s, int end) Implements abstract org. Doc from org. Seeks the previous character head in a stream
Oniguruma equivalent:
| |
| length | back to summary |
|---|---|
| public int length(byte[] bytes, int p, int end) Implements abstract org. Doc from org. Returns character length given stream, character position and stream end
returns
| |
| lengthForThreeUptoFour | back to summary |
|---|---|
| private int lengthForThreeUptoFour(byte[] bytes, int p, int end, int s) | |
| lengthForTwoUptoFour | back to summary |
|---|---|
| private int lengthForTwoUptoFour(byte[] bytes, int p, int end, int s) | |
| mbcCaseFold | back to summary |
|---|---|
| public int mbcCaseFold(int flag, byte[] bytes, IntHolder pp, int end, byte[] lower) Overrides org. Doc from org. onigenc_ascii_mbc_case_fold
| |
| mbcToCode | back to summary |
|---|---|
| public int mbcToCode(byte[] bytes, int p, int end) Implements abstract org. Doc from org. Returns code point for a character
Oniguruma equivalent:
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final GB18030Encoding. | |
| public static final GB18030Encoding. | |
| public static final GB18030Encoding. | |
| public static final GB18030Encoding. | |
| public static final GB18030Encoding. | |
| public static final GB18030Encoding. | |
| public static final GB18030Encoding. | |
| public static final GB18030Encoding. | |
| public static final GB18030Encoding. | |
| public static final GB18030Encoding. | |
| public static final GB18030Encoding. | |
| public static final GB18030Encoding. | |
| public static final GB18030Encoding. | |
| public static final GB18030Encoding. | |
| public static final GB18030Encoding. | |
| public static final GB18030Encoding. | |
| public static final GB18030Encoding. | |
| public static final GB18030Encoding. | |
| public static final GB18030Encoding. | |
| public static final GB18030Encoding. | |
| public static final GB18030Encoding. | |
| public static final GB18030Encoding. | |
| public static final GB18030Encoding. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static GB18030Encoding. | |
| public static GB18030Encoding. |
| Even_C4CM | back to summary |
|---|---|
| public static final GB18030Encoding. | |
| Even_CM_Even_C4CM | back to summary |
|---|---|
| public static final GB18030Encoding. | |
| Even_CM_Even_CMC4 | back to summary |
|---|---|
| public static final GB18030Encoding. | |
| Even_CM_Odd_C4CM | back to summary |
|---|---|
| public static final GB18030Encoding. | |
| Even_CM_Odd_CMC4 | back to summary |
|---|---|
| public static final GB18030Encoding. | |
| Even_CM_One_CX | back to summary |
|---|---|
| public static final GB18030Encoding. | |
| Even_CMC4 | back to summary |
|---|---|
| public static final GB18030Encoding. | |
| Odd_C4CM | back to summary |
|---|---|
| public static final GB18030Encoding. | |
| Odd_CM_Even_C4CM | back to summary |
|---|---|
| public static final GB18030Encoding. | |
| Odd_CM_Even_CMC4 | back to summary |
|---|---|
| public static final GB18030Encoding. | |
| Odd_CM_Odd_C4CM | back to summary |
|---|---|
| public static final GB18030Encoding. | |
| Odd_CM_Odd_CMC4 | back to summary |
|---|---|
| public static final GB18030Encoding. | |
| Odd_CM_One_CX | back to summary |
|---|---|
| public static final GB18030Encoding. | |
| Odd_CMC4 | back to summary |
|---|---|
| public static final GB18030Encoding. | |
| One_C2 | back to summary |
|---|---|
| public static final GB18030Encoding. | |
| One_C4 | back to summary |
|---|---|
| public static final GB18030Encoding. | |
| One_C4_Even_CMC4 | back to summary |
|---|---|
| public static final GB18030Encoding. | |
| One_C4_Odd_CMC4 | back to summary |
|---|---|
| public static final GB18030Encoding. | |
| One_CM | back to summary |
|---|---|
| public static final GB18030Encoding. | |
| One_CM_Even_C4CM | back to summary |
|---|---|
| public static final GB18030Encoding. | |
| One_CM_Odd_C4CM | back to summary |
|---|---|
| public static final GB18030Encoding. | |
| One_CMC4 | back to summary |
|---|---|
| public static final GB18030Encoding. | |
| START | back to summary |
|---|---|
| public static final GB18030Encoding. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static GB18030Encoding. | |
| values | back to summary |
|---|---|
| public static GB18030Encoding. | |