Skip to content

Commit d861b92

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 6d5e493 commit d861b92

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
@@ -3049,8 +3049,11 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
30493049
</para>
30503050
<para>
30513051
Converts the first letter of each word to upper case and the
3052-
rest to lower case. Words are sequences of alphanumeric
3053-
characters separated by non-alphanumeric characters.
3052+
rest to lower case. When using the <literal>libc</literal> locale
3053+
provider, words are sequences of alphanumeric characters separated
3054+
by non-alphanumeric characters; when using the ICU locale provider,
3055+
words are separated according to
3056+
<ulink url="https://www.unicode.org/reports/tr29/#Word_Boundaries">Unicode Standard Annex #29</ulink>.
30543057
</para>
30553058
<para>
30563059
<literal>initcap('hi THOMAS')</literal>

0 commit comments

Comments
 (0)