summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-03-26 13:06:51 +0100
committerBruno Haible <bruno@clisp.org>2011-03-26 13:06:51 +0100
commitd21d53bde06e6d7ebdf9c0a1a74255204fde1252 (patch)
tree14f8310c86d7bb79fe52eaf19d984abaa454dfbe
parentebe5d182f5227a55c022aacd5bc44a8ccc21f269 (diff)
downloadlibunistring-d21d53bde06e6d7ebdf9c0a1a74255204fde1252.tar.gz
Support long names of bidi classes.
-rw-r--r--ChangeLog7
-rw-r--r--NEWS2
-rw-r--r--doc/unictype.texi11
3 files changed, 18 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 91df5cc..b570c89 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2011-03-26 Bruno Haible <bruno@clisp.org>
+ Support long names of bidi classes.
+ * doc/unictype.texi (Object oriented API): Document
+ uc_bidi_class_long_name. Mention that uc_bidi_class_byname recognizes
+ long names.
+
+2011-03-26 Bruno Haible <bruno@clisp.org>
+
Update after gnulib changed.
* autogen.sh (GNULIB_MODULES): Use unictype/bidiclass-all instead of
unictype/bidicategory-all.
diff --git a/NEWS b/NEWS
index cfe771c..00e3fce 100644
--- a/NEWS
+++ b/NEWS
@@ -37,8 +37,10 @@ New in 0.9.4:
* In the include file unictype.h, functions for returning long names of
property values have been added:
uc_general_category_long_name
+ uc_bidi_class_long_name
The functions
uc_general_category_byname
+ uc_bidi_class_byname
have been extended to recognize long names as well as short names.
* It is now easier to detect the subminor version: The value of the variable
_libunistring_version and of the macro _LIBUNISTRING_VERSION now includes
diff --git a/doc/unictype.texi b/doc/unictype.texi
index 90b372f..48aa43c 100644
--- a/doc/unictype.texi
+++ b/doc/unictype.texi
@@ -600,12 +600,19 @@ category and its name.
@deftypefun {const char *} uc_bidi_class_name (int @var{bidi_class})
@deftypefunx {const char *} uc_bidi_category_name (int @var{category})
-Returns the name of a bidi class.
+Returns the name of a bidi class, more precisely, the abbreviated name.
+@end deftypefun
+
+@deftypefun {const char *} uc_bidi_class_long_name (int @var{bidi_class})
+Returns the long name of a bidi class.
@end deftypefun
@deftypefun int uc_bidi_class_byname (const char *@var{bidi_class_name})
@deftypefunx int uc_bidi_category_byname (const char *@var{category_name})
-Returns the bidi class given by name, e.g@. @code{"LRE"}.
+Returns the bidi class given by name, e.g@. @code{"LRE"}, or by long name,
+e.g@. @code{"Left-to-Right Embedding"}.
+This lookup ignores spaces, underscores, or hyphens as word separators and is
+case-insignificant.
@end deftypefun
The following functions view bidirectional categories as sets of Unicode