Skip to content

Commit 3c05d4d

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 fd4ad33 commit 3c05d4d

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
@@ -3110,8 +3110,11 @@ SELECT NOT(ROW(table.*) IS NOT NULL) FROM TABLE; -- detect at least one null in
31103110
</para>
31113111
<para>
31123112
Converts the first letter of each word to upper case and the
3113-
rest to lower case. Words are sequences of alphanumeric
3114-
characters separated by non-alphanumeric characters.
3113+
rest to lower case. When using the <literal>libc</literal> locale
3114+
provider, words are sequences of alphanumeric characters separated
3115+
by non-alphanumeric characters; when using the ICU locale provider,
3116+
words are separated according to
3117+
<ulink url="https://www.unicode.org/reports/tr29/#Word_Boundaries">Unicode Standard Annex #29</ulink>.
31153118
</para>
31163119
<para>
31173120
<literal>initcap('hi THOMAS')</literal>

0 commit comments

Comments
 (0)