linkend="icu-external-references"/> for more details.
+
ICU Comparison Levels
+
Comparison of two strings (collation) in ICU is determined by a
multi-level process, where textual features are grouped into
linkend="icu-collation-settings-table">collation settings. Higher
levels correspond to finer textual features.
+
shows which textual feature
differences are considered significant when determining equality at the
invisible separator, and as seen in the table, is ignored for at all
levels of comparison less than identic.
+
At every level, even with full normalization off, basic normalization is
performed. For example, 'á' may be composed of the
code points U&'\0061\0301' or the single code
created with deterministic set to
true.
+
Collation Level Examples
CREATE COLLATION level3 (provider = icu, deterministic = false, locale = 'und-u-ka-shifted-ks-level3');
SELECT 'x-y' = 'x_y' COLLATE level4; -- false
-
Collation Settings for an ICU Locale
+
shows the available
collation settings, which can be used as part of a language tag to
customize a collation.
+
ICU Collation Settings
+
+
|
co
Collation type. See for additional options and details.
+
|
ka
noignore, shifted
character classes are ignored.
+
|
kb
true, false
before 'aé'.
+
|
kc
true, false
+
|
kf
the rules of the locale.
+
|
kn
true, false
'id-123'.
+
|
kk
true, false
+
|
kr
+
|
ks
level1, level2, level3, level4, identic
for details.
+
|
kv
- Defaults may depend on locale. The above table is not meant to be
- complete. See for additional
- options and details.
+
+ Defaults may depend on locale. The above table is not meant to be
+ complete. See for additional
+ options and details.
+
For many collation settings, you must create the collation with
Examples
+
CREATE COLLATION "de-u-co-phonebk-x-icu" (provider = icu, locale = 'de-u-co-phonebk');
-
External References for ICU
+
This section () is only a brief
overview of ICU behavior and language tags. Refer to the following
documents for technical details, additional options, and new behavior:
+
-
- url="https://www.unicode.org/reports/tr35/tr35-collation.html">Unicode
- Technical Standard #35
+
Unicode Technical Standard #35
- repository