Class ASCIIEncoding

  • All Implemented Interfaces:
    java.lang.Cloneable

    public final class ASCIIEncoding
    extends SingleByteEncoding
    • Constructor Detail

      • ASCIIEncoding

        protected ASCIIEncoding()
      • ASCIIEncoding

        protected ASCIIEncoding​(boolean isDummy)
    • Method Detail

      • toLowerCaseTable

        public final byte[] toLowerCaseTable()
        Description copied from class: Encoding
        Returns lower case table if it's safe to use it directly, otherwise null Used for fast case insensitive matching for some singlebyte encodings
        Overrides:
        toLowerCaseTable in class Encoding
        Returns:
        lower case table
      • isCodeCType

        public boolean isCodeCType​(int code,
                                   int ctype)
        ascii_is_code_ctype / ONIGENC_IS_ASCII_CODE_CTYPE
        Specified by:
        isCodeCType in class Encoding
        Parameters:
        code - a code point of a character
        ctype - a character type to check against Oniguruma equivalent: is_code_ctype