stri_*_fixed
functions'
behavior, see stringi-search-fixed.
stri_opts_fixed(case_insensitive = FALSE, overlap = FALSE, ...)
u_toupper()
function).
Full case mappings should be used whenever possible because they produce
better results by working on whole strings. They take into account
the string context and the language and can map to a result string with
a different length as appropriate, see stringi-search-coll.Searching for overlapping pattern matches works in case of the
stri_extract_all_fixed
, stri_locate_all_fixed
,
and stri_count_fixed
functions.
stringi-search-fixed
,
stringi-search
stri_detect_fixed("ala", "ALA") # case-sensitive by default
stri_detect_fixed("ala", "ALA", opts_fixed=stri_opts_fixed(case_insensitive=TRUE))
stri_detect_fixed("ala", "ALA", case_insensitive=TRUE) # equivalent
Run the code above in your browser using DataLab