From: | Jeff Davis <jdavis(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Add unicode_strtitle() for Unicode Default Case Conversion. |
Date: | 2024-03-30 00:53:32 |
Message-ID: | E1rqMyS-006PVi-G6@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Add unicode_strtitle() for Unicode Default Case Conversion.
This brings the titlecasing implementation for the builtin provider
out of formatting.c and into unicode_case.c, along with
unicode_strlower() and unicode_strupper(). Accepts an arbitrary word
boundary callback.
Simple for now, but can be extended to support the Unicode Default
Case Conversion algorithm with full case mapping.
Discussion: https://postgr.es/m/3bc653b5d562ae9e2838b11cb696816c328a489a.camel@j-davis.com
Reviewed-by: Peter Eisentraut
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/46e5441fa536b89c1123f270fdfeeb72c320b901
Modified Files
--------------
src/backend/utils/adt/formatting.c | 107 +++++++++++++++++++++++--------------
src/common/unicode_case.c | 76 +++++++++++++++++++++++---
src/include/common/unicode_case.h | 5 ++
3 files changed, 140 insertions(+), 48 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Dean Rasheed | 2024-03-30 10:04:07 | pgsql: Add support for MERGE ... WHEN NOT MATCHED BY SOURCE. |
Previous Message | Daniel Gustafsson | 2024-03-29 22:55:51 | pgsql: Remove superfluous trailing semicolons |