A function that matches patterns and returns a logical vector
Usage
sf_grepl(subject, pattern, encode_mode = "auto", fixed = FALSE,
nthreads = getOption("stringfish.nthreads", 1L))Arguments
- subject
The subject character vector to search
- pattern
The pattern to search for
- encode_mode
"auto", "UTF-8" or "byte". Determines multi-byte (UTF-8) characters or single-byte characters are used.
- fixed
determines whether the pattern parameter should be interpreted literally or as a regular expression
- nthreads
Number of threads to use