From 4c2f21ef4cf49513a19f8ffe4a37b624b74be561 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 9 Jan 2011 11:33:55 +0100 Subject: [PATCH] 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. --- ChangeLog | 25 +++++++++++++++++++++++++ MODULES.html.sh | 7 +++++++ lib/unictype.in.h | 14 ++++++++++++++ lib/unictype/pr_byname.gperf | 7 +++++++ modules/unictype/property-all | 7 +++++++ modules/unictype/property-byname | 7 +++++++ 6 files changed, 67 insertions(+) diff --git a/ChangeLog b/ChangeLog index f72ff5b17..7909a31c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,30 @@ 2011-01-09 Bruno Haible + 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. diff --git a/MODULES.html.sh b/MODULES.html.sh index e49ccef29..c4d92b12e 100755 --- a/MODULES.html.sh +++ b/MODULES.html.sh @@ -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 diff --git a/lib/unictype.in.h b/lib/unictype.in.h index d87169cc7..fa3539fd0 100644 --- a/lib/unictype.in.h +++ b/lib/unictype.in.h @@ -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); diff --git a/lib/unictype/pr_byname.gperf b/lib/unictype/pr_byname.gperf index 5d3daa0d0..79de6e8d6 100644 --- a/lib/unictype/pr_byname.gperf +++ b/lib/unictype/pr_byname.gperf @@ -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 } diff --git a/modules/unictype/property-all b/modules/unictype/property-all index 01b01a785..0080c7bfa 100644 --- a/modules/unictype/property-all +++ b/modules/unictype/property-all @@ -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 diff --git a/modules/unictype/property-byname b/modules/unictype/property-byname index 14567ff5f..18a881e76 100644 --- a/modules/unictype/property-byname +++ b/modules/unictype/property-byname @@ -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 -- 2.11.0