mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-04 04:39:20 +02:00
Bug 654651 - Better g_unicode_canonical_decomposition()
Add g_unichar_fully_decompose(). Deprecate g_unicode_canonical_decomposition().
This commit is contained in:
@@ -295,6 +295,11 @@ gboolean g_unichar_decompose (gunichar ch,
|
||||
gunichar *a,
|
||||
gunichar *b);
|
||||
|
||||
gsize g_unichar_fully_decompose (gunichar ch,
|
||||
gboolean compat,
|
||||
gunichar *result,
|
||||
gsize result_len);
|
||||
|
||||
/* 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. */
|
||||
@@ -302,9 +307,7 @@ void g_unicode_canonical_ordering (gunichar *string,
|
||||
gsize len);
|
||||
|
||||
|
||||
/* Compute canonical decomposition of a character. Returns g_malloc()d
|
||||
string of Unicode characters. RESULT_LEN is set to the resulting
|
||||
length of the string. */
|
||||
/* Deprecated. Use g_unichar_fully_decompose() */
|
||||
gunichar *g_unicode_canonical_decomposition (gunichar ch,
|
||||
gsize *result_len) G_GNUC_MALLOC;
|
||||
|
||||
|
Reference in New Issue
Block a user