summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-03-26 13:53:56 +0100
committerBruno Haible <bruno@clisp.org>2011-03-26 13:53:56 +0100
commitc060bc5d6083b9506898771e5443c22b8ae1c5e1 (patch)
tree7597be5300e565dc73c10f96372686c189dfa165
parent5d8b1b825933e607a6b4ecb36702b5cd0ccd6962 (diff)
downloadlibunistring-c060bc5d6083b9506898771e5443c22b8ae1c5e1.tar.gz
Support long names of joining types.
-rw-r--r--ChangeLog9
-rw-r--r--NEWS1
-rw-r--r--doc/unictype.texi9
3 files changed, 17 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b570c89..54d9af6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,14 @@
2011-03-26 Bruno Haible <bruno@clisp.org>
+ Support long names of joining types.
+ * doc/unictype.texi (Joining type): Document
+ uc_joining_type_long_name. Mention that uc_joining_type_byname
+ recognizes long names.
+
+2011-03-26 Bruno Haible <bruno@clisp.org>
+
Support long names of bidi classes.
- * doc/unictype.texi (Object oriented API): Document
+ * doc/unictype.texi (Bidi class): Document
uc_bidi_class_long_name. Mention that uc_bidi_class_byname recognizes
long names.
diff --git a/NEWS b/NEWS
index 00e3fce..d5aa25a 100644
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,7 @@ New in 0.9.4:
* In the include file unictype.h, functions for the Arabic joining type and
the Arabic joining group have been added:
uc_joining_type_name
+ uc_joining_type_long_name
uc_joining_type_byname
uc_joining_type
uc_joining_group_name
diff --git a/doc/unictype.texi b/doc/unictype.texi
index 378f43f..0215b96 100644
--- a/doc/unictype.texi
+++ b/doc/unictype.texi
@@ -763,8 +763,15 @@ and its name.
Returns the name of a joining type.
@end deftypefun
+@deftypefun {const char *} uc_joining_type_long_name (int @var{joining_type})
+Returns the long name of a joining type.
+@end deftypefun
+
@deftypefun int uc_joining_type_byname (const char *@var{joining_type_name})
-Returns the joining type given by name, e.g.@ @code{"D"}.
+Returns the joining type given by name, e.g@. @code{"D"}, or by long name,
+e.g@. @code{"Dual Joining}.
+This lookup ignores spaces, underscores, or hyphens as word separators and is
+case-insignificant.
@end deftypefun
The following function gives the joining type of every Unicode character.