Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcd42785

Browse files
committed
doc: Better example for custom ICU rules
Use a more practical example, and also add some explanation.Reported-by: Jeff Davis <pgsql@j-davis.com>
1 parent4701036 commitcd42785

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

‎doc/src/sgml/ref/create_collation.sgml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,17 @@ CREATE COLLATION german_phonebook (provider = icu, locale = 'de-u-co-phonebk');
243243
</para>
244244

245245
<para>
246-
To create a collation using the ICU provider, based on theEnglish ICU
247-
locale,with custom rules:
246+
To create a collation using the ICU provider, based on theroot ICU locale,
247+
with custom rules:
248248
<programlisting>
249-
<![CDATA[CREATE COLLATIONen_custom (provider = icu, locale = 'en', rules = '&a < g');]]>
249+
<![CDATA[CREATE COLLATIONcustom (provider = icu, locale = 'und', rules = '&V << w <<< W');]]>
250250
</programlisting>
251+
With this rule, the letter <quote>W</quote> is sorted after
252+
<quote>V</quote>, but is treated as a secondary difference similar to an
253+
accent. Rules like this are contained in the locale definitions of some
254+
languages. (Of course, if a locale definition already contains the desired
255+
rules, then they don't need to be specified again explicitly.) See the ICU
256+
documentation for further details and examples on the rules syntax.
251257
</para>
252258

253259
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp