public final class NonStrictUTF8Encoding extends BaseUTF8Encoding
| Modifier and Type | Field and Description |
|---|---|
static NonStrictUTF8Encoding |
INSTANCE |
private static int[] |
UTF8EncLen |
USE_INVALID_CODE_SCHEMEEMPTY_FOLD_CODESCHAR_INVALID, charset, hashCode, isAsciiCompatible, isDummy, isFixedWidth, isSingleByte, maxLength, minLength, name, NEW_LINE| Modifier | Constructor and Description |
|---|---|
protected |
NonStrictUTF8Encoding() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCodeCType(int code,
int ctype)
Perform a check whether given code is of given character type (e.g.
|
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 |
codeToMbc, codeToMbcLength, ctypeCodeRange, getCharsetName, isNewLine, isReverseMatchAllowed, leftAdjustCharHead, mbcCaseFold, mbcToCode, trail0, trailSapplyAllCaseFold, caseFoldCodesByString, ctypeCodeRange, propertyNameToCTypelength, lengthForTwoUptoFour, mb2CodeToMbc, mb2CodeToMbcLength, mb2IsCodeCType, mb4CodeToMbc, mb4CodeToMbcLength, mb4IsCodeCType, mbnMbcCaseFold, mbnMbcToCode, missing, missing, safeLengthForUptoFour, safeLengthForUptoFourGreatedThan127, safeLengthForUptoThree, safeLengthForUptoTwo, strCodeAt, strLengthasciiApplyAllCaseFold, asciiCaseFoldCodesByString, asciiMbcCaseFold, isCodeCTypeInternalasciiToLower, 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, toLowerCaseTable, toString, xdigitValprivate static final int[] UTF8EncLen
public static final NonStrictUTF8Encoding 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 otherwisepublic boolean isCodeCType(int code,
int ctype)
EncodingisCodeCType in class UnicodeEncodingcode - a code point of a characterctype - a character type to check against
Oniguruma equivalent: is_code_ctype