From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add unicode_strtitle() for Unicode Default Case Conversion.
Date: Sat, 30 Mar 2024 00:53:32 +0000
Message-ID: <E1rqMyS-006PVi-G6@gemulon.postgresql.org> (raw)
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: jdavis@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Add unicode_strtitle() for Unicode Default Case Conversion.
In-Reply-To: <E1rqMyS-006PVi-G6@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox