Обсуждение: pgsql: Add support for other normal forms to Unicode normalization API
Add support for other normal forms to Unicode normalization API It previously only supported NFKC, for use by SASLprep. This expands the API to offer the choice of all four normalization forms. Right now, there are no internal users of the forms other than NFKC. Reviewed-by: Daniel Verite <daniel@manitou-mail.org> Reviewed-by: Andreas Karlsson <andreas@proxel.se> Discussion: https://www.postgresql.org/message-id/flat/c1909f27-c269-2ed9-12f8-3ab72c8caf7a@2ndquadrant.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/d40d564c5a920e1121b28463dfed74441cbae5c0 Modified Files -------------- src/common/saslprep.c | 2 +- src/common/unicode/generate-norm_test_table.pl | 9 +- src/common/unicode/generate-unicode_norm_table.pl | 20 +- src/common/unicode/norm_test.c | 23 +- src/common/unicode_norm.c | 31 +- src/include/common/unicode_norm.h | 10 +- src/include/common/unicode_norm_table.h | 7334 +++++++++++---------- 7 files changed, 3727 insertions(+), 3702 deletions(-)