# HG changeset patch # User Bruno Haible # Date 1294569235 -3600 # Node ID 500ae32859c19844bf10a9f69b8a72628b01903c # Parent 432b930d3cb46ad76bf6d3dbeac4b663ffa82b49 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. diff --git a/ChangeLog b/ChangeLog --- 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 --- a/MODULES.html.sh +++ b/MODULES.html.sh @@ -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 diff --git a/lib/unictype.in.h b/lib/unictype.in.h --- a/lib/unictype.in.h +++ b/lib/unictype.in.h @@ -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); diff --git a/lib/unictype/pr_byname.gperf b/lib/unictype/pr_byname.gperf --- a/lib/unictype/pr_byname.gperf +++ b/lib/unictype/pr_byname.gperf @@ -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 } diff --git a/modules/unictype/property-all b/modules/unictype/property-all --- a/modules/unictype/property-all +++ b/modules/unictype/property-all @@ -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 diff --git a/modules/unictype/property-byname b/modules/unictype/property-byname --- a/modules/unictype/property-byname +++ b/modules/unictype/property-byname @@ -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