From 2fecc28015258d269433f08f9a34e3e9d10156cd Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 26 Mar 2011 11:20:29 +0100 Subject: Support names and long names of canonical combining classes. --- doc/unictype.texi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'doc') 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}) -- cgit v1.2.1