Skip to content

Commit 276b022

Browse files
committed
Clarify documentation for the initcap function
This commit documents differences in the definition of word separators for the initcap function between libc and ICU locale providers. Backpatch to all supported branches. Discussion: https://postgr.es/m/804cc10ef95d4d3b298e76b181fd9437%40postgrespro.ru Author: Oleg Tselebrovskiy <o.tselebrovskiy@postgrespro.ru> Backpatch-through: 13
1 parent 0395464 commit 276b022

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/src/sgml/func.sgml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2879,8 +2879,11 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
28792879
</para>
28802880
<para>
28812881
Converts the first letter of each word to upper case and the
2882-
rest to lower case. Words are sequences of alphanumeric
2883-
characters separated by non-alphanumeric characters.
2882+
rest to lower case. When using the <literal>libc</literal> locale
2883+
provider, words are sequences of alphanumeric characters separated
2884+
by non-alphanumeric characters; when using the ICU locale provider,
2885+
words are separated according to
2886+
<ulink url="https://www.unicode.org/reports/tr29/#Word_Boundaries">Unicode Standard Annex #29</ulink>.
28842887
</para>
28852888
<para>
28862889
<literal>initcap('hi THOMAS')</literal>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy