stringi (version 0.2-5)

stri_detect_coll: Detect a Canonically Equivalent Pattern Match

Description

This function checks if there is at least one occurrence of a pattern in a string. This is a locale-sensitive text operation.

Usage

stri_detect_coll(str, pattern, opts_collator = NULL)

Arguments

str
character vector
pattern
character vector
opts_collator
a named list with ICU Collator's settings as generated with stri_opts_collator; NULL for default settings

Value

  • Returns a logical vector.

Details

Vectorized over str and pattern.

See stringi-search-coll for more details on locale-sensitive text searching in stringi.

If pattern is empty, then the result is NA and a warning is generated.

See Also

Other 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_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-locale; stringi-search-coll

Other search_coll: stri_count_coll; stri_extract_all_coll, stri_extract_first_coll, stri_extract_first_coll, stri_extract_last_coll, stri_extract_last_coll; stri_locate_all_coll, stri_locate_first_coll, stri_locate_first_coll, stri_locate_last_coll, stri_locate_last_coll; stri_replace_all_coll, stri_replace_first_coll, stri_replace_first_coll, stri_replace_last_coll, stri_replace_last_coll; stri_split_coll; stringi-search-coll; stringi-search

Other search_detect: stri_detect_charclass; stri_detect_fixed; stri_detect_regex; stri_detect; stringi-search