Class Windows_1252Encoding

All Implemented Interfaces:
Cloneable

public final class Windows_1252Encoding extends CaseFoldMapEncoding
  • Field Details

    • CP1252_CtypeTable

      static final short[] CP1252_CtypeTable
    • CP1252_ToLowerCaseTable

      static final byte[] CP1252_ToLowerCaseTable
    • CP1252_CaseFoldMap

      static final int[][] CP1252_CaseFoldMap
    • INSTANCE

      public static final Windows_1252Encoding INSTANCE
  • Constructor Details

    • Windows_1252Encoding

      protected Windows_1252Encoding()
  • Method Details

    • caseMap

      public int caseMap(IntHolder flagP, byte[] bytes, IntHolder pp, int end, byte[] to, int toP, int toEnd)
      Description copied from class: Encoding
      Oniguruma equivalent: case_map
      Overrides:
      caseMap in class SingleByteEncoding
    • 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