Class KOI8Encoding

  • All Implemented Interfaces:
    java.lang.Cloneable

    public final class KOI8Encoding
    extends CaseFoldMapEncoding
    • Field Detail

      • ENC_CASE_FOLD_ASCII_CASE

        private static final int ENC_CASE_FOLD_ASCII_CASE
        See Also:
        Constant Field Values
      • ONIGENC_CASE_FOLD_NONASCII_CASE

        private static final int ONIGENC_CASE_FOLD_NONASCII_CASE
        See Also:
        Constant Field Values
      • KOI8_CtypeTable

        static final short[] KOI8_CtypeTable
      • KOI8_ToLowerCaseTable

        static final byte[] KOI8_ToLowerCaseTable
      • KOI8_CaseFoldMap

        static final int[][] KOI8_CaseFoldMap
    • Constructor Detail

      • KOI8Encoding

        protected KOI8Encoding()
    • Method Detail

      • mbcCaseFold

        public int mbcCaseFold​(int flag,
                               byte[] bytes,
                               IntHolder pp,
                               int end,
                               byte[] lower)
        Description copied from class: AbstractEncoding
        onigenc_ascii_mbc_case_fold
        Overrides:
        mbcCaseFold in class AbstractEncoding
        Parameters:
        flag - case fold flag
        pp - an IntHolder that points at character head
        lower - a buffer where to extract case folded character Oniguruma equivalent: mbc_case_fold
      • isCodeCType

        public boolean isCodeCType​(int code,
                                   int ctype)
        Description copied from class: Encoding
        Perform a check whether given code is of given character type (e.g. used by isWord(someByte) and similar methods)
        Overrides:
        isCodeCType in class CaseFoldMapEncoding
        Parameters:
        code - a code point of a character
        ctype - a character type to check against Oniguruma equivalent: is_code_ctype