public abstract class UnicodeEncoding extends MultiByteEncoding
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
UnicodeEncoding.CodeRangeEntry |
| Modifier and Type | Field and Description |
|---|---|
(package private) static int[] |
CaseFold_From |
(package private) static int[] |
CaseFold_Locale_From |
(package private) static int[][] |
CaseFold_Locale_To |
(package private) static int[][] |
CaseFold_To |
(package private) static int[] |
CaseUnfold_11_From |
(package private) static int[] |
CaseUnfold_11_Locale_From |
(package private) static int[][] |
CaseUnfold_11_Locale_To |
(package private) static int[][] |
CaseUnfold_11_To |
(package private) static int[][] |
CaseUnfold_12 |
(package private) static int[][] |
CaseUnfold_12_Locale |
(package private) static int[][] |
CaseUnfold_13 |
(package private) static CaseInsensitiveBytesHash<java.lang.Integer> |
CTypeNameHash |
(package private) static IntHash<int[]> |
FoldHash |
private static int |
PROPERTY_NAME_MAX_SIZE |
(package private) static IntHash<int[]> |
Unfold1Hash |
(package private) static IntArrayHash<int[]> |
Unfold2Hash |
(package private) static IntArrayHash<int[]> |
Unfold3Hash |
(package private) static short[] |
UNICODE_ISO_8859_1_CTypeTable |
EMPTY_FOLD_CODESCHAR_INVALID, charset, hashCode, isAsciiCompatible, isDummy, isFixedWidth, isSingleByte, maxLength, minLength, name, NEW_LINE| Modifier | Constructor and Description |
|---|---|
protected |
UnicodeEncoding(java.lang.String name,
int minLength,
int maxLength,
int[] EncLen) |
protected |
UnicodeEncoding(java.lang.String name,
int minLength,
int maxLength,
int[] EncLen,
int[][] Trans) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyAllCaseFold(int flag,
ApplyAllCaseFoldFunction fun,
java.lang.Object arg)
onigenc_ascii_apply_all_case_fold / used also by multibyte encodings
|
CaseFoldCodeItem[] |
caseFoldCodesByString(int flag,
byte[] bytes,
int p,
int end)
onigenc_ascii_get_case_fold_codes_by_str / used also by multibyte encodings
|
protected int[] |
ctypeCodeRange(int ctype) |
java.lang.String |
getCharsetName() |
private static CaseInsensitiveBytesHash<java.lang.Integer> |
initializeCTypeNameTable() |
private static IntHash<int[]> |
initializeFoldHash() |
private static IntHash<int[]> |
initializeUnfold1Hash() |
private static IntArrayHash<int[]> |
initializeUnfold2Hash() |
private static IntArrayHash<int[]> |
initializeUnfold3Hash() |
boolean |
isCodeCType(int code,
int ctype)
Perform a check whether given code is of given character type (e.g.
|
int |
mbcCaseFold(int flag,
byte[] bytes,
IntHolder pp,
int end,
byte[] fold)
onigenc_ascii_mbc_case_fold
|
int |
propertyNameToCType(byte[] name,
int p,
int end)
onigenc_minimum_property_name_to_ctype
notably overridden by unicode encodings
|
length, lengthForTwoUptoFour, mb2CodeToMbc, mb2CodeToMbcLength, mb2IsCodeCType, mb4CodeToMbc, mb4CodeToMbcLength, mb4IsCodeCType, mbnMbcCaseFold, mbnMbcToCode, missing, missing, safeLengthForUptoFour, safeLengthForUptoFourGreatedThan127, safeLengthForUptoThree, safeLengthForUptoTwo, strCodeAt, strLengthasciiApplyAllCaseFold, asciiCaseFoldCodesByString, asciiMbcCaseFold, isCodeCTypeInternal, isNewLineasciiToLower, asciiToUpper, codeToMbc, codeToMbcLength, ctypeCodeRange, 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, 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, xdigitValprivate static final int PROPERTY_NAME_MAX_SIZE
static final short[] UNICODE_ISO_8859_1_CTypeTable
static final CaseInsensitiveBytesHash<java.lang.Integer> CTypeNameHash
static final int[] CaseFold_From
static final int[][] CaseFold_To
static final int[] CaseFold_Locale_From
static final int[][] CaseFold_Locale_To
static final int[] CaseUnfold_11_From
static final int[][] CaseUnfold_11_To
static final int[] CaseUnfold_11_Locale_From
static final int[][] CaseUnfold_11_Locale_To
static final int[][] CaseUnfold_12
static final int[][] CaseUnfold_12_Locale
static final int[][] CaseUnfold_13
static final IntHash<int[]> FoldHash
static final IntHash<int[]> Unfold1Hash
static final IntArrayHash<int[]> Unfold2Hash
static final IntArrayHash<int[]> Unfold3Hash
protected UnicodeEncoding(java.lang.String name,
int minLength,
int maxLength,
int[] EncLen)
protected UnicodeEncoding(java.lang.String name,
int minLength,
int maxLength,
int[] EncLen,
int[][] Trans)
public java.lang.String getCharsetName()
getCharsetName in class Encodingpublic boolean isCodeCType(int code,
int ctype)
EncodingisCodeCType in class Encodingcode - a code point of a characterctype - a character type to check against
Oniguruma equivalent: is_code_ctypeprotected final int[] ctypeCodeRange(int ctype)
public int propertyNameToCType(byte[] name,
int p,
int end)
AbstractEncodingpropertyNameToCType in class AbstractEncodingpublic int mbcCaseFold(int flag,
byte[] bytes,
IntHolder pp,
int end,
byte[] fold)
AbstractEncodingmbcCaseFold in class AbstractEncodingflag - case fold flagpp - an IntHolder that points at character headfold - a buffer where to extract case folded character
Oniguruma equivalent: mbc_case_foldpublic void applyAllCaseFold(int flag,
ApplyAllCaseFoldFunction fun,
java.lang.Object arg)
AbstractEncodingapplyAllCaseFold in class AbstractEncodingflag - case fold flagfun - case folding functor (look at: ApplyCaseFold)arg - case folding functor argument (look at: ApplyCaseFoldArg)
Oniguruma equivalent: apply_all_case_foldpublic CaseFoldCodeItem[] caseFoldCodesByString(int flag, byte[] bytes, int p, int end)
AbstractEncodingcaseFoldCodesByString in class AbstractEncodingprivate static CaseInsensitiveBytesHash<java.lang.Integer> initializeCTypeNameTable()
private static IntHash<int[]> initializeFoldHash()
private static IntHash<int[]> initializeUnfold1Hash()
private static IntArrayHash<int[]> initializeUnfold2Hash()
private static IntArrayHash<int[]> initializeUnfold3Hash()