mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-19 15:18:55 +02:00
Bug 665685 — Add a #define for the max length of a Unicode decomposition
Add G_UNICHAR_MAX_DECOMPOSITION_LEN for the maximum length of the decomposition of a single Unicode character. Closes: bgo#665685
This commit is contained in:
@@ -551,6 +551,18 @@ gsize g_unichar_fully_decompose (gunichar ch,
|
||||
gunichar *result,
|
||||
gsize result_len);
|
||||
|
||||
/**
|
||||
* G_UNICHAR_MAX_COMPAT_DECOMPOSITION_LEN:
|
||||
*
|
||||
* The maximum length (in codepoints) of a compatibility or canonical
|
||||
* decomposition of a single Unicode character.
|
||||
*
|
||||
* This is as defined by Unicode 6.1.
|
||||
*
|
||||
* Since: 2.31.3
|
||||
*/
|
||||
#define G_UNICHAR_MAX_DECOMPOSITION_LEN 18 /* codepoints */
|
||||
|
||||
/* Compute canonical ordering of a string in-place. This rearranges
|
||||
decomposed characters in the string according to their combining
|
||||
classes. See the Unicode manual for more information. */
|
||||
|
Reference in New Issue
Block a user