stri_compare
,
stri_order
, stri_detect_fixed
,
and other stringi-search-fixed functions.stri_opts_collator(locale = NULL, strength = 3L,
alternate_shifted = FALSE, french = FALSE, uppercase_first = NA,
case_level = FALSE, normalization = FALSE, numeric = FALSE)
NULL
or ""
for
default locale1
for the most
permissive collation rules, 4
for the most strict
onesFALSE
treats all the code points with
non-ignorable primary weights in the same way,
TRUE
causes code points with primary weights that
are equal or below the variable top value to be ignored
on priTRUE
results in secondary weights being
considered backwardsNA
orders upper and lower case letters in accordance to
their tertiary weights, TRUE
forces upper case
letters to sort before lower case letters, FALSE
does the oppositeTRUE
, then incremental check is performed to see
whether the input data is in the FCD form. If the data is
not in the FCD form, incremental NFD normalization is
performedA note on collation strength
: generally,
strength
set to 4 is the least permissive. Set to 2
to ignore case differences. Set to 1 to also ignore
diacritical differences.
The strings are Unicode-normalized before the comparison.
ICU Collation Service Architecture -- ICU User
Guide,
icu::Collator
Class Reference -- ICU4C API
Documentation,
stri_cmp
,
stri_compare
; stri_count_fixed
;
stri_detect_fixed
;
stri_enc_detect2
;
stri_locate_all_fixed
,
stri_locate_all_fixed,
,
stri_locate_first_fixed
,
stri_locate_first_fixed,
,
stri_locate_last_fixed
,
stri_locate_last_fixed
;
stri_order
, stri_sort
;
stri_replace_all_fixed
,
stri_replace_all_fixed
,
stri_replace_first_fixed
,
stri_replace_first_fixed
,
stri_replace_last_fixed
,
stri_replace_last_fixed
;
stri_split_fixed
,
stri_split_fixed
;
stri_trans_tolower
,
stri_trans_totitle
,
stri_trans_toupper
;
stringi-locale
;
stringi-search-fixed
Other search_fixed: stri_count_fixed
;
stri_detect_fixed
;
stri_extract_all_fixed
,
stri_extract_all_fixed,
,
stri_extract_first_fixed
,
stri_extract_first_fixed,
,
stri_extract_last_fixed
,
stri_extract_last_fixed
;
stri_locate_all_fixed
,
stri_locate_all_fixed,
,
stri_locate_first_fixed
,
stri_locate_first_fixed,
,
stri_locate_last_fixed
,
stri_locate_last_fixed
;
stri_replace_all_fixed
,
stri_replace_all_fixed
,
stri_replace_first_fixed
,
stri_replace_first_fixed
,
stri_replace_last_fixed
,
stri_replace_last_fixed
;
stri_split_fixed
,
stri_split_fixed
;
stringi-search-fixed
;
stringi-search
stri_cmp("zupa100", "zupa2") != stri_cmp("zupa100", "zupa2", stri_opts_collator(numeric=TRUE))
stri_cmp("above mentioned", "above-mentioned")
stri_cmp("above mentioned", "above-mentioned", stri_opts_collator(alternate_shifted=TRUE))
Run the code above in your browser using DataLab