Skip to content

Commit 1fe9e38

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 637ead2 commit 1fe9e38

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
@@ -3148,8 +3148,11 @@ SELECT NOT(ROW(table.*) IS NOT NULL) FROM TABLE; -- detect at least one null in
31483148
</para>
31493149
<para>
31503150
Converts the first letter of each word to upper case and the
3151-
rest to lower case. Words are sequences of alphanumeric
3152-
characters separated by non-alphanumeric characters.
3151+
rest to lower case. When using the <literal>libc</literal> locale
3152+
provider, words are sequences of alphanumeric characters separated
3153+
by non-alphanumeric characters; when using the ICU locale provider,
3154+
words are separated according to
3155+
<ulink url="https://www.unicode.org/reports/tr29/#Word_Boundaries">Unicode Standard Annex #29</ulink>.
31533156
</para>
31543157
<para>
31553158
<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