public final class USASCIIEncoding extends SingleByteEncoding
| Modifier and Type | Field and Description |
|---|---|
static USASCIIEncoding |
INSTANCE |
LowerCaseTableEMPTY_FOLD_CODESCHAR_INVALID, charset, hashCode, isAsciiCompatible, isDummy, isFixedWidth, isSingleByte, maxLength, minLength, name, NEW_LINE| Modifier | Constructor and Description |
|---|---|
protected |
USASCIIEncoding() |
| 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
|
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 |
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, 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 USASCIIEncoding INSTANCE
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 otherwiselength in class SingleByteEncodingmbc_enc_len
modified for 1.9 purposes,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