Skip to content

Commit 907ac2c

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 589d6e6 commit 907ac2c

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
@@ -2926,8 +2926,11 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
29262926
</para>
29272927
<para>
29282928
Converts the first letter of each word to upper case and the
2929-
rest to lower case. Words are sequences of alphanumeric
2930-
characters separated by non-alphanumeric characters.
2929+
rest to lower case. When using the <literal>libc</literal> locale
2930+
provider, words are sequences of alphanumeric characters separated
2931+
by non-alphanumeric characters; when using the ICU locale provider,
2932+
words are separated according to
2933+
<ulink url="https://www.unicode.org/reports/tr29/#Word_Boundaries">Unicode Standard Annex #29</ulink>.
29312934
</para>
29322935
<para>
29332936
<literal>initcap('hi THOMAS')</literal>

0 commit comments

Comments
 (0)