Package org.gnome.glib
Enum Class NormalizeMode
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<NormalizeMode>
,Constable
@Generated("io.github.jwharm.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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionbeyondDEFAULT
also standardize the "compatibility" characters in Unicode, such as SUPERSCRIPT THREE to the standard forms (in this case DIGIT THREE).likeALL
, but with composed forms rather than a maximally decomposed formstandardize differences that do not affect the text content, such as the above-mentioned accent representationlikeDEFAULT
, but with composed forms rather than a maximally decomposed form -
Field Summary
Modifier and TypeFieldDescriptionstatic final NormalizeMode
another name forDEFAULT_COMPOSE
static final NormalizeMode
another name forDEFAULT
static final NormalizeMode
another name forALL_COMPOSE
static final NormalizeMode
another name forALL
-
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the NormalizeMode classint
getValue()
Get the numeric value of this enumstatic NormalizeMode
of
(int value) Create a new NormalizeMode for the provided valuestatic NormalizeMode
Returns the enum constant of this class with the specified name.static NormalizeMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
standardize differences that do not affect the text content, such as the above-mentioned accent representation -
DEFAULT_COMPOSE
likeDEFAULT
, but with composed forms rather than a maximally decomposed form -
ALL
beyondDEFAULT
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
likeALL
, but with composed forms rather than a maximally decomposed form
-
-
Field Details
-
NFD
another name forDEFAULT
-
NFC
another name forDEFAULT_COMPOSE
-
NFKD
another name forALL
-
NFKC
another name forALL_COMPOSE
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
of
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 interfaceEnumeration
- Returns:
- the enum value
-
getType
-