public abstract class MultiByteEncoding extends AbstractEncoding
| Modifier and Type | Field and Description |
|---|---|
protected static int |
A |
protected int[] |
EncLen |
protected static int |
F |
protected int[][] |
Trans |
protected int[] |
TransZero |
EMPTY_FOLD_CODESCHAR_INVALID, charset, hashCode, isAsciiCompatible, isDummy, isFixedWidth, isSingleByte, maxLength, minLength, name, NEW_LINE| Modifier | Constructor and Description |
|---|---|
protected |
MultiByteEncoding(java.lang.String name,
int minLength,
int maxLength,
int[] EncLen,
int[][] Trans,
short[] CTypeTable) |
| Modifier and Type | Method and Description |
|---|---|
int |
length(byte c)
Returns character length given character head
returns
1 for singlebyte encodings or performs direct length table lookup for multibyte ones. |
private int |
lengthForThree(byte[] bytes,
int p,
int end,
int b,
int s) |
private int |
lengthForThreeUptoFour(byte[] bytes,
int p,
int end,
int b,
int s) |
private int |
lengthForTwo(byte[] bytes,
int p,
int end,
int b,
int s) |
protected int |
lengthForTwoUptoFour(byte[] bytes,
int p,
int end,
int b,
int s) |
private int |
lengthForTwoUptoThree(byte[] bytes,
int p,
int end,
int b,
int s) |
protected int |
mb2CodeToMbc(int code,
byte[] bytes,
int p) |
protected int |
mb2CodeToMbcLength(int code) |
protected boolean |
mb2IsCodeCType(int code,
int ctype) |
protected int |
mb4CodeToMbc(int code,
byte[] bytes,
int p) |
protected int |
mb4CodeToMbcLength(int code) |
protected boolean |
mb4IsCodeCType(int code,
int ctype) |
protected int |
mbnMbcCaseFold(int flag,
byte[] bytes,
IntHolder pp,
int end,
byte[] lower) |
protected int |
mbnMbcToCode(byte[] bytes,
int p,
int end) |
protected int |
missing(int n) |
protected int |
missing(int b,
int delta) |
protected int |
safeLengthForUptoFour(byte[] bytes,
int p,
int end) |
protected int |
safeLengthForUptoFourGreatedThan127(byte[] bytes,
int p,
int end) |
protected int |
safeLengthForUptoThree(byte[] bytes,
int p,
int end) |
protected int |
safeLengthForUptoTwo(byte[] bytes,
int p,
int end) |
int |
strCodeAt(byte[] bytes,
int p,
int end,
int index) |
int |
strLength(byte[] bytes,
int p,
int end) |
applyAllCaseFold, asciiApplyAllCaseFold, asciiCaseFoldCodesByString, asciiMbcCaseFold, caseFoldCodesByString, isCodeCTypeInternal, isNewLine, mbcCaseFold, propertyNameToCTypeasciiToLower, asciiToUpper, codeToMbc, codeToMbcLength, ctypeCodeRange, digitVal, equals, getCharset, getCharsetName, getIndex, getName, hashCode, isAlnum, isAlpha, isAscii, isAscii, isAsciiCompatible, isBlank, isCntrl, isCodeCType, isDigit, isDummy, isFixedWidth, isGraph, isLower, isMbcAscii, isMbcCrnl, isMbcHead, isMbcWord, isNewLine, isPrint, isPunct, isReverseMatchAllowed, isSbWord, isSingleByte, isSpace, isUpper, isWord, isWordGraphPrint, isXDigit, leftAdjustCharHead, length, load, maxLength, maxLengthDistance, mbcodeStartPosition, mbcToCode, minLength, odigitVal, prevCharHead, replicate, rightAdjustCharHead, rightAdjustCharHeadWithPrev, setName, setName, step, stepBack, strByteLengthNull, strLengthNull, strNCmp, toLowerCaseTable, toString, xdigitValprotected final int[] EncLen
protected static final int A
protected static final int F
protected final int[][] Trans
protected final int[] TransZero
protected MultiByteEncoding(java.lang.String name,
int minLength,
int maxLength,
int[] EncLen,
int[][] Trans,
short[] CTypeTable)
public int length(byte c)
Encoding1 for singlebyte encodings or performs direct length table lookup for multibyte ones.protected final int missing(int n)
protected final int missing(int b,
int delta)
protected final int safeLengthForUptoFourGreatedThan127(byte[] bytes,
int p,
int end)
protected final int safeLengthForUptoFour(byte[] bytes,
int p,
int end)
protected final int lengthForTwoUptoFour(byte[] bytes,
int p,
int end,
int b,
int s)
private int lengthForThreeUptoFour(byte[] bytes,
int p,
int end,
int b,
int s)
protected final int safeLengthForUptoThree(byte[] bytes,
int p,
int end)
private int lengthForTwoUptoThree(byte[] bytes,
int p,
int end,
int b,
int s)
private int lengthForThree(byte[] bytes,
int p,
int end,
int b,
int s)
protected final int safeLengthForUptoTwo(byte[] bytes,
int p,
int end)
private int lengthForTwo(byte[] bytes,
int p,
int end,
int b,
int s)
protected final int mbnMbcToCode(byte[] bytes,
int p,
int end)
protected final int mbnMbcCaseFold(int flag,
byte[] bytes,
IntHolder pp,
int end,
byte[] lower)
protected final int mb2CodeToMbcLength(int code)
protected final int mb4CodeToMbcLength(int code)
protected final int mb2CodeToMbc(int code,
byte[] bytes,
int p)
protected final int mb4CodeToMbc(int code,
byte[] bytes,
int p)
protected final boolean mb2IsCodeCType(int code,
int ctype)
protected final boolean mb4IsCodeCType(int code,
int ctype)
public int strLength(byte[] bytes,
int p,
int end)