enum
GLib::NormalizeMode
Overview
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.
Defined in:
lib/gi-crystal/src/auto/g_lib-2.0/g_lib.crEnum Members
-
Default =
0_u32
-
standardize differences that do not affect the text content, such as the above-mentioned accent representation
-
Nfd =
0_u32
-
another name for %G_NORMALIZE_DEFAULT
-
DefaultCompose =
1_u32
-
like %G_NORMALIZE_DEFAULT, but with composed forms rather than a maximally decomposed form
-
Nfc =
1_u32
-
another name for %G_NORMALIZE_DEFAULT_COMPOSE
-
All =
2_u32
-
beyond %G_NORMALIZE_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
-
Nfkd =
2_u32
-
another name for %G_NORMALIZE_ALL
-
AllCompose =
3_u32
-
like %G_NORMALIZE_ALL, but with composed forms rather than a maximally decomposed form
-
Nfkc =
3_u32
-
another name for %G_NORMALIZE_ALL_COMPOSE
Instance Method Summary
-
#all?
Returns
true
if this enum value equalsAll
-
#all_compose?
Returns
true
if this enum value equalsAllCompose
-
#default?
Returns
true
if this enum value equalsDefault
-
#default_compose?
Returns
true
if this enum value equalsDefaultCompose
-
#nfc?
Returns
true
if this enum value equalsNfc
-
#nfd?
Returns
true
if this enum value equalsNfd
-
#nfkc?
Returns
true
if this enum value equalsNfkc
-
#nfkd?
Returns
true
if this enum value equalsNfkd