changeset 14160:500ae32859c1

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.
author Bruno Haible <bruno@clisp.org>
date Sun, 09 Jan 2011 11:33:55 +0100
parents 432b930d3cb4
children 68beb11ecfda
files ChangeLog MODULES.html.sh lib/unictype.in.h lib/unictype/pr_byname.gperf modules/unictype/property-all modules/unictype/property-byname
diffstat 6 files changed, 67 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Jan 09 11:28:10 2011 +0100
+++ b/ChangeLog	Sun Jan 09 11:33:55 2011 +0100
@@ -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.
--- a/MODULES.html.sh	Sun Jan 09 11:28:10 2011 +0100
+++ b/MODULES.html.sh	Sun Jan 09 11:33:55 2011 +0100
@@ -3132,6 +3132,13 @@
   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
--- a/lib/unictype.in.h	Sun Jan 09 11:28:10 2011 +0100
+++ b/lib/unictype.in.h	Sun Jan 09 11:33:55 2011 +0100
@@ -389,6 +389,13 @@
 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_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);
--- a/lib/unictype/pr_byname.gperf	Sun Jan 09 11:28:10 2011 +0100
+++ b/lib/unictype/pr_byname.gperf	Sun Jan 09 11:33:55 2011 +0100
@@ -24,6 +24,13 @@
 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 }
--- a/modules/unictype/property-all	Sun Jan 09 11:28:10 2011 +0100
+++ b/modules/unictype/property-all	Sun Jan 09 11:33:55 2011 +0100
@@ -24,6 +24,13 @@
 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
--- a/modules/unictype/property-byname	Sun Jan 09 11:28:10 2011 +0100
+++ b/modules/unictype/property-byname	Sun Jan 09 11:33:55 2011 +0100
@@ -26,6 +26,13 @@
 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