collator

open fun collator(caseSensitive: Boolean, diacriticSensitive: Boolean, locale: Locale): Expression
open fun collator(caseSensitive: Expression, diacriticSensitive: Expression, locale: Expression): Expression

Returns a collator for use in locale-dependent comparison operations. The case-sensitive and diacritic-sensitive options default to false. The locale argument specifies the IETF language tag of the locale to use. If none is provided, the default locale is used. If the requested locale is not available, the collator will use a system-defined fallback locale. Use resolved-locale to test the results of locale fallback behavior.

Return

expression

Parameters

caseSensitive

case sensitive flag

diacriticSensitive

diacritic sensitive flag

locale

locale

See also

<a href="https://maplibre.org/maplibre-style-spec/expressions/#types-collator">Style specification</a>

open fun collator(caseSensitive: Boolean, diacriticSensitive: Boolean): Expression
open fun collator(caseSensitive: Expression, diacriticSensitive: Expression): Expression

Returns a collator for use in locale-dependent comparison operations. The case-sensitive and diacritic-sensitive options default to false. The locale argument specifies the IETF language tag of the locale to use. If none is provided, the default locale is used. If the requested locale is not available, the collator will use a system-defined fallback locale. Use resolved-locale to test the results of locale fallback behavior.

Return

expression

Parameters

caseSensitive

case sensitive flag

diacriticSensitive

diacritic sensitive flag

See also

<a href="https://maplibre.org/maplibre-style-spec/expressions/#types-collator">Style specification</a>