New Unicode character properties, from Unicode 5.2.0.
authorBruno Haible <bruno@clisp.org>
Sun, 9 Jan 2011 10:33:55 +0000 (11:33 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 9 Jan 2011 10:35:45 +0000 (11:35 +0100)
* lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
UC_PROPERTY_CHANGES_WHEN_TITLECASED,
UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
uc_is_property_cased, uc_is_property_case_ignorable,
uc_is_property_changes_when_lowercased,
uc_is_property_changes_when_uppercased,
uc_is_property_changes_when_titlecased,
uc_is_property_changes_when_casefolded,
uc_is_property_changes_when_casemapped): New declarations.
* lib/unictype/pr_byname.gperf: Add the new properties.
* modules/unictype/property-byname (Depends-on): Depend on the new
properties modules.
* modules/unictype/property-all (Depends-on): Likewise.
* MODULES.html.sh (Unicode string functions): Add
unictype/property-case-ignorable, unictype/property-cased,
unictype/property-changes-when-casefolded,
unictype/property-changes-when-casemapped,
unictype/property-changes-when-lowercased,
unictype/property-changes-when-titlecased,
unictype/property-changes-when-uppercased.

ChangeLog
MODULES.html.sh
lib/unictype.in.h
lib/unictype/pr_byname.gperf
modules/unictype/property-all
modules/unictype/property-byname

index f72ff5b..7909a31 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,30 @@
 2011-01-09  Bruno Haible  <bruno@clisp.org>
 
+       New Unicode character properties, from Unicode 5.2.0.
+       * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
+       UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
+       UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
+       UC_PROPERTY_CHANGES_WHEN_TITLECASED,
+       UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
+       UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
+       uc_is_property_cased, uc_is_property_case_ignorable,
+       uc_is_property_changes_when_lowercased,
+       uc_is_property_changes_when_uppercased,
+       uc_is_property_changes_when_titlecased,
+       uc_is_property_changes_when_casefolded,
+       uc_is_property_changes_when_casemapped): New declarations.
+       * lib/unictype/pr_byname.gperf: Add the new properties.
+       * modules/unictype/property-byname (Depends-on): Depend on the new
+       properties modules.
+       * modules/unictype/property-all (Depends-on): Likewise.
+       * MODULES.html.sh (Unicode string functions): Add
+       unictype/property-case-ignorable, unictype/property-cased,
+       unictype/property-changes-when-casefolded,
+       unictype/property-changes-when-casemapped,
+       unictype/property-changes-when-lowercased,
+       unictype/property-changes-when-titlecased,
+       unictype/property-changes-when-uppercased.
+
        New module 'unictype/property-changes-when-casemapped'.
        * modules/unictype/property-changes-when-casemapped: New file.
        * lib/unictype/pr_changes_when_casemapped.c: New file.
index e49ccef..c4d92b1 100755 (executable)
@@ -3132,6 +3132,13 @@ func_all_modules ()
   func_module unictype/property-bidi-segment-separator
   func_module unictype/property-bidi-whitespace
   func_module unictype/property-byname
+  func_module unictype/property-case-ignorable
+  func_module unictype/property-cased
+  func_module unictype/property-changes-when-casefolded
+  func_module unictype/property-changes-when-casemapped
+  func_module unictype/property-changes-when-lowercased
+  func_module unictype/property-changes-when-titlecased
+  func_module unictype/property-changes-when-uppercased
   func_module unictype/property-combining
   func_module unictype/property-composite
   func_module unictype/property-currency-symbol
index d87169c..fa3539f 100644 (file)
@@ -389,6 +389,13 @@ extern const uc_property_t UC_PROPERTY_OTHER_UPPERCASE;
 extern const uc_property_t UC_PROPERTY_LOWERCASE;
 extern const uc_property_t UC_PROPERTY_OTHER_LOWERCASE;
 extern const uc_property_t UC_PROPERTY_TITLECASE;
+extern const uc_property_t UC_PROPERTY_CASED;
+extern const uc_property_t UC_PROPERTY_CASE_IGNORABLE;
+extern const uc_property_t UC_PROPERTY_CHANGES_WHEN_LOWERCASED;
+extern const uc_property_t UC_PROPERTY_CHANGES_WHEN_UPPERCASED;
+extern const uc_property_t UC_PROPERTY_CHANGES_WHEN_TITLECASED;
+extern const uc_property_t UC_PROPERTY_CHANGES_WHEN_CASEFOLDED;
+extern const uc_property_t UC_PROPERTY_CHANGES_WHEN_CASEMAPPED;
 extern const uc_property_t UC_PROPERTY_SOFT_DOTTED;
 /* Identifiers.  */
 extern const uc_property_t UC_PROPERTY_ID_START;
@@ -485,6 +492,13 @@ extern bool uc_is_property_other_uppercase (ucs4_t uc);
 extern bool uc_is_property_lowercase (ucs4_t uc);
 extern bool uc_is_property_other_lowercase (ucs4_t uc);
 extern bool uc_is_property_titlecase (ucs4_t uc);
+extern bool uc_is_property_cased (ucs4_t uc);
+extern bool uc_is_property_case_ignorable (ucs4_t uc);
+extern bool uc_is_property_changes_when_lowercased (ucs4_t uc);
+extern bool uc_is_property_changes_when_uppercased (ucs4_t uc);
+extern bool uc_is_property_changes_when_titlecased (ucs4_t uc);
+extern bool uc_is_property_changes_when_casefolded (ucs4_t uc);
+extern bool uc_is_property_changes_when_casemapped (ucs4_t uc);
 extern bool uc_is_property_soft_dotted (ucs4_t uc);
 extern bool uc_is_property_id_start (ucs4_t uc);
 extern bool uc_is_property_other_id_start (ucs4_t uc);
index 5d3daa0..79de6e8 100644 (file)
@@ -24,6 +24,13 @@ other_uppercase, { &uc_is_property_other_uppercase }
 lowercase, { &uc_is_property_lowercase }
 other_lowercase, { &uc_is_property_other_lowercase }
 titlecase, { &uc_is_property_titlecase }
+cased, { &uc_is_property_cased }
+case_ignorable, { &uc_is_property_case_ignorable }
+changes_when_lowercased, { &uc_is_property_changes_when_lowercased }
+changes_when_uppercased, { &uc_is_property_changes_when_uppercased }
+changes_when_titlecased, { &uc_is_property_changes_when_titlecased }
+changes_when_casefolded, { &uc_is_property_changes_when_casefolded }
+changes_when_casemapped, { &uc_is_property_changes_when_casemapped }
 soft_dotted, { &uc_is_property_soft_dotted }
 id_start, { &uc_is_property_id_start }
 other_id_start, { &uc_is_property_other_id_start }
index 01b01a7..0080c7b 100644 (file)
@@ -24,6 +24,13 @@ unictype/property-bidi-pdf
 unictype/property-bidi-segment-separator
 unictype/property-bidi-whitespace
 unictype/property-byname
+unictype/property-case-ignorable
+unictype/property-cased
+unictype/property-changes-when-casefolded
+unictype/property-changes-when-casemapped
+unictype/property-changes-when-lowercased
+unictype/property-changes-when-titlecased
+unictype/property-changes-when-uppercased
 unictype/property-combining
 unictype/property-composite
 unictype/property-currency-symbol
index 14567ff..18a881e 100644 (file)
@@ -26,6 +26,13 @@ unictype/property-bidi-other-neutral
 unictype/property-bidi-pdf
 unictype/property-bidi-segment-separator
 unictype/property-bidi-whitespace
+unictype/property-case-ignorable
+unictype/property-cased
+unictype/property-changes-when-casefolded
+unictype/property-changes-when-casemapped
+unictype/property-changes-when-lowercased
+unictype/property-changes-when-titlecased
+unictype/property-changes-when-uppercased
 unictype/property-combining
 unictype/property-composite
 unictype/property-currency-symbol