public abstract class SingleByteEncoding extends AbstractEncoding
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
LowerCaseTable |
EMPTY_FOLD_CODESCHAR_INVALID, charset, hashCode, isAsciiCompatible, isDummy, isFixedWidth, isSingleByte, maxLength, minLength, name, NEW_LINE| Modifier | Constructor and Description |
|---|---|
protected |
SingleByteEncoding(java.lang.String name,
short[] CTypeTable,
byte[] LowerCaseTable) |
protected |
SingleByteEncoding(java.lang.String name,
short[] CTypeTable,
byte[] LowerCaseTable,
boolean isDummy) |
| Modifier and Type | Method and Description |
|---|---|
int |
codeToMbc(int code,
byte[] bytes,
int p)
onigenc_single_byte_code_to_mbc
|
int |
codeToMbcLength(int code)
onigenc_single_byte_code_to_mbclen
|
int[] |
ctypeCodeRange(int ctype,
IntHolder sbOut)
onigenc_not_support_get_ctype_code_range
|
boolean |
isReverseMatchAllowed(byte[] bytes,
int p,
int end)
onigenc_always_true_is_allowed_reverse_match
|
int |
leftAdjustCharHead(byte[] bytes,
int p,
int s,
int end)
onigenc_single_byte_left_adjust_char_head
|
int |
length(byte c)
onigenc_single_byte_mbc_enc_len
|
int |
length(byte[] bytes,
int p,
int end)
Returns character length given stream, character position and stream end
returns
1 for singlebyte encodings or performs sanity validations for multibyte ones
and returns the character length, missing characters in the stream otherwise |
int |
mbcToCode(byte[] bytes,
int p,
int end)
onigenc_single_byte_mbc_to_code
|
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, 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, isSbWord, isSingleByte, isSpace, isUpper, isWord, isWordGraphPrint, isXDigit, load, maxLength, maxLengthDistance, mbcodeStartPosition, minLength, odigitVal, prevCharHead, replicate, rightAdjustCharHead, rightAdjustCharHeadWithPrev, setName, setName, step, stepBack, strByteLengthNull, strLengthNull, strNCmp, toLowerCaseTable, toString, xdigitValprotected SingleByteEncoding(java.lang.String name,
short[] CTypeTable,
byte[] LowerCaseTable)
protected SingleByteEncoding(java.lang.String name,
short[] CTypeTable,
byte[] LowerCaseTable,
boolean isDummy)
public int length(byte c)
public int length(byte[] bytes,
int p,
int end)
Encoding1 for singlebyte encodings or performs sanity validations for multibyte ones
and returns the character length, missing characters in the stream otherwisepublic final int strLength(byte[] bytes,
int p,
int end)
public int strCodeAt(byte[] bytes,
int p,
int end,
int index)
public int mbcToCode(byte[] bytes,
int p,
int end)
public final int codeToMbcLength(int code)
codeToMbcLength in class Encodingpublic final int codeToMbc(int code,
byte[] bytes,
int p)
public final int[] ctypeCodeRange(int ctype,
IntHolder sbOut)
ctypeCodeRange in class Encodingpublic final int leftAdjustCharHead(byte[] bytes,
int p,
int s,
int end)
leftAdjustCharHead in class Encodingbytes - byte streamp - positions - stopend - endpublic final boolean isReverseMatchAllowed(byte[] bytes,
int p,
int end)
isReverseMatchAllowed in class Encoding