Enum Class NormalizeMode

java.lang.Object
java.lang.Enum<NormalizeMode>
org.gnome.glib.NormalizeMode
All Implemented Interfaces:
Serializable, Comparable<NormalizeMode>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum NormalizeMode extends Enum<NormalizeMode> implements Enumeration
Defines how a Unicode string is transformed in a canonical form, standardizing such issues as whether a character with an accent is represented as a base character and combining accent or as a single precomposed character. Unicode strings should generally be normalized before comparing them.
  • Enum Constant Details

    • DEFAULT

      public static final NormalizeMode DEFAULT
      standardize differences that do not affect the text content, such as the above-mentioned accent representation
    • DEFAULT_COMPOSE

      public static final NormalizeMode DEFAULT_COMPOSE
      like DEFAULT, but with composed forms rather than a maximally decomposed form
    • ALL

      public static final NormalizeMode ALL
      beyond DEFAULT also standardize the "compatibility" characters in Unicode, such as SUPERSCRIPT THREE to the standard forms (in this case DIGIT THREE). Formatting information may be lost but for most text operations such characters should be considered the same
    • ALL_COMPOSE

      public static final NormalizeMode ALL_COMPOSE
      like ALL, but with composed forms rather than a maximally decomposed form
  • Field Details

  • Method Details

    • values

      public static NormalizeMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NormalizeMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • of

      public static NormalizeMode of(int value)
      Create a new NormalizeMode for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static NormalizeMode of(MemorySegment address)
      Create a new NormalizeMode for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address
    • getType

      public static @Nullable Type getType()
      Get the GType of the NormalizeMode class.
      Returns:
      the GType