Top Fields Constructors Methods
org.jcodings.specific

public final Class KOI8Encoding

extends CaseFoldMapEncoding
Class Inheritance
Imports
org.jcodings.CaseFoldMapEncoding, .IntHolder

Field Summary

Modifier and TypeField and Description
private static final int
public static final KOI8Encoding
pack-priv static final int[][]
pack-priv static final short[]
pack-priv static final byte[]
private static final int
Inherited from org.jcodings.CaseFoldMapEncoding:
CaseFoldMapfoldFlag

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public boolean
isCodeCType(int
a code point of a character
code
,
int
a character type to check against Oniguruma equivalent: is_code_ctype
ctype
)

Overrides org.jcodings.CaseFoldMapEncoding.isCodeCType.

Perform a check whether given code is of given character type (e.g. used by isWord(someByte) and similar methods)
public int
mbcCaseFold(int
case fold flag
flag
,
byte[] bytes, IntHolder
an IntHolder that points at character head
pp
,
int end, byte[]
a buffer where to extract case folded character Oniguruma equivalent: mbc_case_fold
lower
)

Overrides org.jcodings.AbstractEncoding.mbcCaseFold.

onigenc_ascii_mbc_case_fold
Inherited from org.jcodings.CaseFoldMapEncoding:
applyAllCaseFoldapplyAllCaseFoldWithMapcaseFoldCodesByStringgetCaseFoldCodesByStringWithMap

Field Detail

ENC_CASE_FOLD_ASCII_CASEback to summary
private static final int ENC_CASE_FOLD_ASCII_CASE
INSTANCEback to summary
public static final KOI8Encoding INSTANCE
KOI8_CaseFoldMapback to summary
pack-priv static final int[][] KOI8_CaseFoldMap
KOI8_CtypeTableback to summary
pack-priv static final short[] KOI8_CtypeTable
KOI8_ToLowerCaseTableback to summary
pack-priv static final byte[] KOI8_ToLowerCaseTable
ONIGENC_CASE_FOLD_NONASCII_CASEback to summary
private static final int ONIGENC_CASE_FOLD_NONASCII_CASE

Constructor Detail

KOI8Encodingback to summary
protected KOI8Encoding()

Method Detail

isCodeCTypeback to summary
public boolean isCodeCType(int code, int ctype)

Overrides org.jcodings.CaseFoldMapEncoding.isCodeCType.

Doc from org.jcodings.Encoding.isCodeCType.

Perform a check whether given code is of given character type (e.g. used by isWord(someByte) and similar methods)

Parameters
code:int

a code point of a character

ctype:int

a character type to check against Oniguruma equivalent: is_code_ctype

Annotations
@Override
mbcCaseFoldback to summary
public int mbcCaseFold(int flag, byte[] bytes, IntHolder pp, int end, byte[] lower)

Overrides org.jcodings.AbstractEncoding.mbcCaseFold.

Doc from org.jcodings.AbstractEncoding.mbcCaseFold.

onigenc_ascii_mbc_case_fold

Parameters
flag:int

Doc from org.jcodings.Encoding.mbcCaseFold.

case fold flag

pp:IntHolder

Doc from org.jcodings.Encoding.mbcCaseFold.

an IntHolder that points at character head

lower:byte[]

Doc from org.jcodings.Encoding.mbcCaseFold.

a buffer where to extract case folded character Oniguruma equivalent: mbc_case_fold

Annotations
@Override