summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-03-26 11:20:29 +0100
committerBruno Haible <bruno@clisp.org>2011-03-26 11:20:29 +0100
commit2fecc28015258d269433f08f9a34e3e9d10156cd (patch)
treeda21c2a8d0ef8aa34024301da8c945effd3b3355 /doc
parent213475ab1f293526d4b4d1a90607f2e3425fa7e7 (diff)
downloadlibunistring-2fecc28015258d269433f08f9a34e3e9d10156cd.tar.gz
Support names and long names of canonical combining classes.
Diffstat (limited to 'doc')
-rw-r--r--doc/unictype.texi26
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/unictype.texi b/doc/unictype.texi
index 83f9915..90b372f 100644
--- a/doc/unictype.texi
+++ b/doc/unictype.texi
@@ -425,6 +425,10 @@ The canonical combining class value for ``Attached Below Left'' characters.
The canonical combining class value for ``Attached Below'' characters.
@end deftypevr
+@deftypevr Constant int UC_CCC_ATA
+The canonical combining class value for ``Attached Above'' characters.
+@end deftypevr
+
@deftypevr Constant int UC_CCC_ATAR
The canonical combining class value for ``Attached Above Right'' characters.
@end deftypevr
@@ -473,6 +477,28 @@ The canonical combining class value for ``Double Above'' characters.
The canonical combining class value for ``Iota Subscript'' characters.
@end deftypevr
+The following functions associate canonical combining classes with their name.
+
+@deftypefun {const char *} uc_combining_class_name (int @var{ccc})
+Returns the name of a canonical combining class, more precisely, the
+abbreviated name.
+Returns NULL if the canonical combining class is a numeric value without a
+name.
+@end deftypefun
+
+@deftypefun {const char *} uc_combining_class_long_name (int @var{ccc})
+Returns the long name of a canonical combining class.
+Returns NULL if the canonical combining class is a numeric value without a
+name.
+@end deftypefun
+
+@deftypefun int uc_combining_class_byname (const char *@var{ccc_name})
+Returns the canonical combining class given by name, e.g@. @code{"BL"}, or by
+long name, e.g@. @code{"Below Left"}.
+This lookup ignores spaces, underscores, or hyphens as word separators and is
+case-insignificant.
+@end deftypefun
+
The following function looks up the canonical combining class of a character.
@deftypefun int uc_combining_class (ucs4_t @var{uc})