Language code,
Language_Country code, or Language_Country_Variant
code, e.g. "en_US".The two-letter Language code uses the ISO-639-1 standard,
e.g. "en" stands for English, "pl" -- Polish, "fr" -- French,
and "de" for German.
Country is a two-letter code following the ISO-3166 standard.
This is to reflect different language conventions within the same language,
for example in US-English ("en_US") and Australian-English ("en_AU").
Differences may also appear in language conventions used within
the same country. For example, the Euro currency may be used in several European
countries while the individual country's currency is still in circulation.
In such case, ICU Variant "_EURO" could be used for selecting locales
that support the Euro currency.
For a list of locales that are recognized by stri_locale_list.
NULL is given as
as its locale argument. Default locales are available to all the functions:
they are initially set to be the system locale on that platform,
and may be changed with stri_locale_set,
for example if automatic detection fails to recognize
your locale properly.Sometimes it is suggested that your program should avoid changing the default locale:
it is not a good way to request an international object, especially
only for a single function call.
All locale-sensitive functions may request
any desired locale per-call (by specifying the locale argument),
i.e. without referencing to the default locale.
During many tests, however, we did not observe any improper
behavior of
stri_opts_collator for the description
on how to tune its settings, and its locale
argument in particular.Other locale-sensitive functions
include e.g. stri_trans_tolower (that does character case mapping).
ISO 639: Language Codes,
ISO 3166: Country Codes,
stri_locale_get,
stri_locale_set;
stri_locale_info;
stri_locale_listOther locale_sensitive: %!==%,
%!=%, %<=%< a="">=%<>,
%<%< a="">%<>, %===%,
%==%, %>=%,
%>%, %stri!==%,
%stri!=%, %stri<=%< a="">=%<>,
%stri<%< a="">%<>, %stri===%,
%stri==%, %stri>=%,
%stri>%; stri_cmp,
stri_cmp_eq, stri_cmp_equiv,
stri_cmp_ge, stri_cmp_gt,
stri_cmp_le, stri_cmp_lt,
stri_cmp_neq,
stri_cmp_nequiv,
stri_compare;
stri_count_coll;
stri_detect_coll;
stri_duplicated,
stri_duplicated_any;
stri_enc_detect2;
stri_extract_all_coll,
stri_extract_first_coll,
stri_extract_first_coll,
stri_extract_last_coll,
stri_extract_last_coll;
stri_extract_words;
stri_locate_all_coll,
stri_locate_first_coll,
stri_locate_first_coll,
stri_locate_last_coll,
stri_locate_last_coll;
stri_locate_boundaries;
stri_locate_words;
stri_opts_collator;
stri_order, stri_sort;
stri_replace_all_coll,
stri_replace_first_coll,
stri_replace_first_coll,
stri_replace_last_coll,
stri_replace_last_coll;
stri_split_boundaries;
stri_split_coll;
stri_trans_tolower,
stri_trans_totitle,
stri_trans_toupper;
stri_unique; stri_wrap;
stringi-search-coll
Other stringi_general_topics: stringi-arguments;
stringi-encoding;
stringi-package;
stringi-search-charclass;
stringi-search-coll;
stringi-search-fixed;
stringi-search-regex;
stringi-search