Package org.jcodings

Class ISOEncoding

    • Field Detail

      • SHARP_s

        public static int SHARP_s
    • Constructor Detail

      • ISOEncoding

        protected ISOEncoding​(java.lang.String name,
                              short[] CTypeTable,
                              byte[] LowerCaseTable,
                              int[][] CaseFoldMap)
      • ISOEncoding

        protected ISOEncoding​(java.lang.String name,
                              short[] CTypeTable,
                              byte[] LowerCaseTable,
                              int[][] CaseFoldMap,
                              boolean foldFlag)
    • Method Detail

      • getCharsetName

        public java.lang.String getCharsetName()
        Description copied from class: Encoding
        The name of the equivalent Java Charset for this encoding. Defaults to the name of the encoding. Subclasses can override this to provide a different name.
        Overrides:
        getCharsetName in class Encoding
        Returns:
        the name of the equivalent Java Charset for this encoding
      • mbcCaseFold

        public int mbcCaseFold​(int flag,
                               byte[] bytes,
                               IntHolder pp,
                               int end,
                               byte[] lower)
        iso_*_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