- java.lang.Object
-
- org.jcodings.Encoding
-
- org.jcodings.SingleByteEncoding
-
- org.jcodings.CaseFoldMapEncoding
-
- org.jcodings.ISOEncoding
-
- org.jcodings.specific.ISO8859_1Encoding
-
- All Implemented Interfaces:
Cloneable
public final class ISO8859_1Encoding extends ISOEncoding
-
-
Field Summary
Fields Modifier and Type Field Description static ISO8859_1EncodingINSTANCE-
Fields inherited from class org.jcodings.ISOEncoding
SHARP_s
-
Fields inherited from class org.jcodings.CaseFoldMapEncoding
CaseFoldMap, foldFlag
-
Fields inherited from class org.jcodings.SingleByteEncoding
LowerCaseTable, MAX_BYTE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedISO8859_1Encoding()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyAllCaseFold(int flag, ApplyAllCaseFoldFunction fun, Object arg)onigenc_ascii_apply_all_case_fold / used also by multibyte encodingsprotected voidasciiApplyAllCaseFold(int flag, ApplyAllCaseFoldFunction fun, Object arg)protected CaseFoldCodeItem[]asciiCaseFoldCodesByString(int flag, byte[] bytes, int p, int end)protected intasciiMbcCaseFold(int flag, byte[] bytes, IntHolder pp, int end, byte[] lower)CaseFoldCodeItem[]caseFoldCodesByString(int flag, byte[] bytes, int p, int end)get_case_fold_codes_by_strintcaseMap(IntHolder flagP, byte[] bytes, IntHolder pp, int end, byte[] to, int toP, int toEnd)Oniguruma equivalent:case_mapprotected booleanisCodeCTypeInternal(int code, int ctype)ONIGENC_IS_XXXXXX_CODE_CTYPEbooleanisNewLine(byte[] bytes, int p, int end)onigenc_is_mbc_newline_0x0a / used also by multibyte encodingsintpropertyNameToCType(byte[] bytes, int p, int end)onigenc_minimum_property_name_to_ctype notably overridden by unicode encodings-
Methods inherited from class org.jcodings.ISOEncoding
getCharsetName, isCodeCType, mbcCaseFold
-
Methods inherited from class org.jcodings.CaseFoldMapEncoding
applyAllCaseFoldWithMap, getCaseFoldCodesByStringWithMap
-
Methods inherited from class org.jcodings.SingleByteEncoding
codeToMbc, codeToMbcLength, ctypeCodeRange, isReverseMatchAllowed, leftAdjustCharHead, length, length, mbcToCode, strCodeAt, strLength
-
Methods inherited from class org.jcodings.Encoding
asciiToLower, 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, isUnicode, isUpper, isUTF8, isWord, isWordGraphPrint, isXDigit, load, maxLength, maxLengthDistance, mbcodeStartPosition, minLength, odigitVal, prevCharHead, rightAdjustCharHead, rightAdjustCharHeadWithPrev, setDummy, setName, setName, step, stepBack, strByteLengthNull, strLengthNull, strNCmp, toLowerCaseTable, toString, xdigitVal
-
-
-
-
Field Detail
-
INSTANCE
public static final ISO8859_1Encoding INSTANCE
-
-
Method Detail
-
applyAllCaseFold
public void applyAllCaseFold(int flag, ApplyAllCaseFoldFunction fun, Object arg)onigenc_ascii_apply_all_case_fold / used also by multibyte encodings- Overrides:
applyAllCaseFoldin classCaseFoldMapEncoding- Parameters:
flag- case fold flagfun- case folding functor (look at:ApplyCaseFold)arg- case folding functor argument (look at:ApplyCaseFoldArg) Oniguruma equivalent:apply_all_case_fold
-
caseFoldCodesByString
public CaseFoldCodeItem[] caseFoldCodesByString(int flag, byte[] bytes, int p, int end)
get_case_fold_codes_by_str- Overrides:
caseFoldCodesByStringin classCaseFoldMapEncoding
-
caseMap
public int caseMap(IntHolder flagP, byte[] bytes, IntHolder pp, int end, byte[] to, int toP, int toEnd)
Description copied from class:EncodingOniguruma equivalent:case_map- Overrides:
caseMapin classSingleByteEncoding
-
isCodeCTypeInternal
protected final boolean isCodeCTypeInternal(int code, int ctype)ONIGENC_IS_XXXXXX_CODE_CTYPE
-
isNewLine
public boolean isNewLine(byte[] bytes, int p, int end)onigenc_is_mbc_newline_0x0a / used also by multibyte encodings
-
asciiMbcCaseFold
protected final int asciiMbcCaseFold(int flag, byte[] bytes, IntHolder pp, int end, byte[] lower)
-
asciiApplyAllCaseFold
protected final void asciiApplyAllCaseFold(int flag, ApplyAllCaseFoldFunction fun, Object arg)
-
asciiCaseFoldCodesByString
protected final CaseFoldCodeItem[] asciiCaseFoldCodesByString(int flag, byte[] bytes, int p, int end)
-
propertyNameToCType
public int propertyNameToCType(byte[] bytes, int p, int end)onigenc_minimum_property_name_to_ctype notably overridden by unicode encodings- Specified by:
propertyNameToCTypein classEncoding
-
-