Class CodePoint

java.lang.Object
com.mta.tehreer.unicode.CodePoint

public class CodePoint extends Object
Provides static utility methods for unicode code points.
  • Method Details

    • getBidiClass

      public static int getBidiClass(int codePoint)
      Returns the bidirectional class of the specified code point.
      Parameters:
      codePoint - The code point whose bidirectional class is returned.
      Returns:
      The bidirectional class of the specified code point.
    • getGeneralCategory

      public static int getGeneralCategory(int codePoint)
      Returns the general category of the specified code point.
      Parameters:
      codePoint - The code point whose general category is returned.
      Returns:
      The general category of the specified code point.
    • getScript

      public static int getScript(int codePoint)
      Returns the script of the specified code point.
      Parameters:
      codePoint - The code point whose script is returned.
      Returns:
      The script of the specified code point.
    • getMirror

      public static int getMirror(int codePoint)
      Returns the mirror of the specified code point. If the specified code point does not have a mirror, then zero is returned.
      Parameters:
      codePoint - The code point whose mirror is returned.
      Returns:
      The mirror of the specified code point if available, zero otherwise.