From: | Jeff Davis <jdavis(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Add Unicode property tables. |
Date: | 2024-03-06 20:51:54 |
Message-ID: | E1rhyEz-002S6h-Qe@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Add Unicode property tables.
Provide functions to test for Unicode properties, such as Alphabetic
or Cased. These functions use tables derived from Unicode data files,
similar to the tables for Unicode normalization or general category,
and those tables can be updated with the 'update-unicode' build
target.
Use Unicode properties to provide functions to test for regex
character classes, like 'punct' or 'alnum'.
Infrastructure in preparation for a builtin collation provider, and
may also be useful for other callers.
Discussion: https://postgr.es/m/ff4c2f2f9c8fc7ca27c1c24ae37ecaeaeaff6b53.camel%40j-davis.com
Reviewed-by: Daniel Verite, Peter Eisentraut, Jeremy Schneider
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/ad49994538c57270c244fab4e1de040568066313
Modified Files
--------------
src/common/unicode/Makefile | 6 +-
src/common/unicode/README | 45 +-
src/common/unicode/category_test.c | 222 +-
.../unicode/generate-unicode_category_table.pl | 390 ++-
src/common/unicode/meson.build | 4 +-
src/common/unicode_category.c | 318 +-
src/include/common/unicode_category.h | 27 +-
src/include/common/unicode_category_table.h | 3694 +++++++++++++++++++-
8 files changed, 4604 insertions(+), 102 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2024-03-06 23:32:18 | pgsql: Revert "Fix parallel-safety check of expressions and predicate f |
Previous Message | Tom Lane | 2024-03-06 19:41:31 | pgsql: Fix type-checking of RECORD-returning functions in FROM. |