Additional unicode primitive functions.
Jeff Davis <jdavis@postgresql.org>
Additional unicode primitive functions. Introduce unicode_version(), icu_unicode_version(), and unicode_assigned(). The latter requires introducing a new lookup table for the Unicode General Category, which is generated along with the other Unicode lookup tables. Discussion: https://postgr.es/m/CA+TgmoYzYR-yhU6k1XFCADeyj=Oyz2PkVsa3iKv+keM8wp-F_A@mail.gmail.com Reviewed-by: Peter Eisentraut
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +90 −19 |
| src/backend/utils/adt/varlena.c | modified | +61 −0 |
| src/common/Makefile | modified | +1 −0 |
| src/common/meson.build | modified | +1 −0 |
| src/common/unicode_category.c | added | +195 −0 |
| src/common/unicode/category_test.c | added | +108 −0 |
| src/common/unicode/generate-unicode_category_table.pl | added | +204 −0 |
| src/common/unicode/generate-unicode_version.pl | added | +46 −0 |
| src/common/unicode/Makefile | modified | +17 −2 |
| src/common/unicode/meson.build | modified | +40 −0 |
| src/common/unicode/norm_test.c | modified | +1 −1 |
| src/include/catalog/pg_proc.dat | modified | +12 −0 |
| src/include/common/unicode_category.h | added | +68 −0 |
| src/include/common/unicode_category_table.h | added | +4040 −0 |
| src/include/common/unicode_version.h | added | +14 −0 |
| src/test/icu/t/010_database.pl | modified | +4 −0 |
| src/test/regress/expected/unicode.out | modified | +18 −0 |
| src/test/regress/sql/unicode.sql | modified | +4 −0 |
Documentation touched
Discussion
- Pre-proposal: unicode normalized text 77 messages · 2023-09-12 → 2024-12-11