public final class ASCIIEncoding extends SingleByteEncoding
| Modifier and Type | Field and Description |
|---|---|
static ASCIIEncoding |
DUMMY |
static ASCIIEncoding |
INSTANCE |
LowerCaseTableEMPTY_FOLD_CODESCHAR_INVALID, charset, hashCode, isAsciiCompatible, isDummy, isFixedWidth, isSingleByte, maxLength, minLength, name, NEW_LINE| Modifier | Constructor and Description |
|---|---|
protected |
ASCIIEncoding() |
protected |
ASCIIEncoding(boolean isDummy) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCharsetName() |
boolean |
isCodeCType(int code,
int ctype)
ascii_is_code_ctype / ONIGENC_IS_ASCII_CODE_CTYPE
|
byte[] |
toLowerCaseTable()
Returns lower case table if it's safe to use it directly, otherwise
null
Used for fast case insensitive matching for some singlebyte encodings |
codeToMbc, codeToMbcLength, ctypeCodeRange, isReverseMatchAllowed, leftAdjustCharHead, length, length, mbcToCode, strCodeAt, strLengthapplyAllCaseFold, asciiApplyAllCaseFold, asciiCaseFoldCodesByString, asciiMbcCaseFold, caseFoldCodesByString, isCodeCTypeInternal, isNewLine, mbcCaseFold, propertyNameToCTypeasciiToLower, asciiToUpper, digitVal, equals, getCharset, getIndex, getName, hashCode, isAlnum, isAlpha, isAscii, isAscii, isAsciiCompatible, isBlank, isCntrl, 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, toString, xdigitValpublic static final ASCIIEncoding INSTANCE
public static final ASCIIEncoding DUMMY
protected ASCIIEncoding()
protected ASCIIEncoding(boolean isDummy)
public final byte[] toLowerCaseTable()
Encodingnull
Used for fast case insensitive matching for some singlebyte encodingstoLowerCaseTable in class Encodingpublic java.lang.String getCharsetName()
getCharsetName in class Encodingpublic boolean isCodeCType(int code,
int ctype)
isCodeCType in class Encodingcode - a code point of a characterctype - a character type to check against
Oniguruma equivalent: is_code_ctype