Class XmlUnicode

java.lang.Object
org.libxmq.imp.xml.XmlUnicode

public final class XmlUnicode extends Object
The Unicode (4.0.1, like libxml2) general categories and blocks used by the XML Schemas regular expressions (port of xml_unicode.c). The functions return 1 if the code point is in the category, 0 if not.
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    ucsIsBlock(int code, String block)
    Port of xmlUCSIsBlock (xmlregexp.c).
    static int
    ucsIsCatC(int code)
    Is the code point in the Unicode general category C.
    static int
    ucsIsCatCc(int code)
    Is the code point in the Unicode general category Cc.
    static int
    ucsIsCatCf(int code)
    Is the code point in the Unicode general category Cf.
    static int
    ucsIsCatCo(int code)
    Is the code point in the Unicode general category Co.
    static int
    ucsIsCatL(int code)
    Is the code point in the Unicode general category L.
    static int
    ucsIsCatLl(int code)
    Is the code point in the Unicode general category Ll.
    static int
    ucsIsCatLm(int code)
    Is the code point in the Unicode general category Lm.
    static int
    ucsIsCatLo(int code)
    Is the code point in the Unicode general category Lo.
    static int
    ucsIsCatLt(int code)
    Is the code point in the Unicode general category Lt.
    static int
    ucsIsCatLu(int code)
    Is the code point in the Unicode general category Lu.
    static int
    ucsIsCatM(int code)
    Is the code point in the Unicode general category M.
    static int
    ucsIsCatMc(int code)
    Is the code point in the Unicode general category Mc.
    static int
    ucsIsCatMe(int code)
    Is the code point in the Unicode general category Me.
    static int
    ucsIsCatMn(int code)
    Is the code point in the Unicode general category Mn.
    static int
    ucsIsCatN(int code)
    Is the code point in the Unicode general category N.
    static int
    ucsIsCatNd(int code)
    Is the code point in the Unicode general category Nd.
    static int
    ucsIsCatNl(int code)
    Is the code point in the Unicode general category Nl.
    static int
    ucsIsCatNo(int code)
    Is the code point in the Unicode general category No.
    static int
    ucsIsCatP(int code)
    Is the code point in the Unicode general category P.
    static int
    ucsIsCatPc(int code)
    Is the code point in the Unicode general category Pc.
    static int
    ucsIsCatPd(int code)
    Is the code point in the Unicode general category Pd.
    static int
    ucsIsCatPe(int code)
    Is the code point in the Unicode general category Pe.
    static int
    ucsIsCatPf(int code)
    Is the code point in the Unicode general category Pf.
    static int
    ucsIsCatPi(int code)
    Is the code point in the Unicode general category Pi.
    static int
    ucsIsCatPo(int code)
    Is the code point in the Unicode general category Po.
    static int
    ucsIsCatPs(int code)
    Is the code point in the Unicode general category Ps.
    static int
    ucsIsCatS(int code)
    Is the code point in the Unicode general category S.
    static int
    ucsIsCatSc(int code)
    Is the code point in the Unicode general category Sc.
    static int
    ucsIsCatSk(int code)
    Is the code point in the Unicode general category Sk.
    static int
    ucsIsCatSm(int code)
    Is the code point in the Unicode general category Sm.
    static int
    ucsIsCatSo(int code)
    Is the code point in the Unicode general category So.
    static int
    ucsIsCatZ(int code)
    Is the code point in the Unicode general category Z.
    static int
    ucsIsCatZl(int code)
    Is the code point in the Unicode general category Zl.
    static int
    ucsIsCatZp(int code)
    Is the code point in the Unicode general category Zp.
    static int
    ucsIsCatZs(int code)
    Is the code point in the Unicode general category Zs.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • ucsIsCatC

      public static int ucsIsCatC(int code)
      Is the code point in the Unicode general category C.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatCc

      public static int ucsIsCatCc(int code)
      Is the code point in the Unicode general category Cc.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatCf

      public static int ucsIsCatCf(int code)
      Is the code point in the Unicode general category Cf.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatCo

      public static int ucsIsCatCo(int code)
      Is the code point in the Unicode general category Co.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatL

      public static int ucsIsCatL(int code)
      Is the code point in the Unicode general category L.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatLl

      public static int ucsIsCatLl(int code)
      Is the code point in the Unicode general category Ll.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatLm

      public static int ucsIsCatLm(int code)
      Is the code point in the Unicode general category Lm.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatLo

      public static int ucsIsCatLo(int code)
      Is the code point in the Unicode general category Lo.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatLt

      public static int ucsIsCatLt(int code)
      Is the code point in the Unicode general category Lt.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatLu

      public static int ucsIsCatLu(int code)
      Is the code point in the Unicode general category Lu.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatM

      public static int ucsIsCatM(int code)
      Is the code point in the Unicode general category M.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatMc

      public static int ucsIsCatMc(int code)
      Is the code point in the Unicode general category Mc.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatMe

      public static int ucsIsCatMe(int code)
      Is the code point in the Unicode general category Me.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatMn

      public static int ucsIsCatMn(int code)
      Is the code point in the Unicode general category Mn.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatN

      public static int ucsIsCatN(int code)
      Is the code point in the Unicode general category N.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatNd

      public static int ucsIsCatNd(int code)
      Is the code point in the Unicode general category Nd.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatNl

      public static int ucsIsCatNl(int code)
      Is the code point in the Unicode general category Nl.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatNo

      public static int ucsIsCatNo(int code)
      Is the code point in the Unicode general category No.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatP

      public static int ucsIsCatP(int code)
      Is the code point in the Unicode general category P.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatPc

      public static int ucsIsCatPc(int code)
      Is the code point in the Unicode general category Pc.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatPd

      public static int ucsIsCatPd(int code)
      Is the code point in the Unicode general category Pd.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatPe

      public static int ucsIsCatPe(int code)
      Is the code point in the Unicode general category Pe.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatPf

      public static int ucsIsCatPf(int code)
      Is the code point in the Unicode general category Pf.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatPi

      public static int ucsIsCatPi(int code)
      Is the code point in the Unicode general category Pi.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatPo

      public static int ucsIsCatPo(int code)
      Is the code point in the Unicode general category Po.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatPs

      public static int ucsIsCatPs(int code)
      Is the code point in the Unicode general category Ps.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatS

      public static int ucsIsCatS(int code)
      Is the code point in the Unicode general category S.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatSc

      public static int ucsIsCatSc(int code)
      Is the code point in the Unicode general category Sc.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatSk

      public static int ucsIsCatSk(int code)
      Is the code point in the Unicode general category Sk.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatSm

      public static int ucsIsCatSm(int code)
      Is the code point in the Unicode general category Sm.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatSo

      public static int ucsIsCatSo(int code)
      Is the code point in the Unicode general category So.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatZ

      public static int ucsIsCatZ(int code)
      Is the code point in the Unicode general category Z.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatZl

      public static int ucsIsCatZl(int code)
      Is the code point in the Unicode general category Zl.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatZp

      public static int ucsIsCatZp(int code)
      Is the code point in the Unicode general category Zp.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsCatZs

      public static int ucsIsCatZs(int code)
      Is the code point in the Unicode general category Zs.
      Parameters:
      code - UCS code point
      Returns:
      1 if true, 0 otherwise
    • ucsIsBlock

      public static int ucsIsBlock(int code, String block)
      Port of xmlUCSIsBlock (xmlregexp.c). Check whether the character is part of the UCS Block.
      Parameters:
      code - UCS code point
      block - UCS block name
      Returns:
      1 if true, 0 if false and -1 on unknown block