unicode: Fix a few issues with G_UNICHAR_MAX_DECOMPOSITION_LENGTH

Raised by Matthias in bgo#665685 but which I didn't spot until after pushing
commit 3ac7c35656.

Renames G_UNICHAR_MAX_DECOMPOSITION_LEN to G_UNICHAR_MAX_DECOMPOSITION_LENGTH
and fixes a few documentation issues.

See: bgo#665685
This commit is contained in:
Philip Withnall
2011-12-06 19:41:31 +00:00
parent 3ac7c35656
commit 386bb0faad
4 changed files with 7 additions and 5 deletions

View File

@@ -700,8 +700,9 @@ g_unichar_compose (gunichar a,
* currently all decompositions are of length at most 4, but
* this may change in the future (very unlikely though).
* At any rate, Unicode does guarantee that a buffer of length
* %G_UNICHAR_MAX_DECOMPOSITION_LEN is always enough for both compatibility and
* canonical decompositions, so that is the size recommended.
* 18 is always enough for both compatibility and canonical
* decompositions, so that is the size recommended. This is provided
* as %G_UNICHAR_MAX_DECOMPOSITION_LENGTH.
*
* See <ulink url="http://unicode.org/reports/tr15/">UAX#15</ulink>
* for details.