Counts the number of characters in a character vector
Usage
sf_nchar(x, type = "chars", nthreads = getOption("stringfish.nthreads", 1L))
Value
An integer vector of the number of characters
Arguments
x
A character vector
type
The type of counting to perform ("chars" or "bytes", default: "chars")
nthreads
Number of threads to use
Details
Returns the number of characters per string. The type of counting only matters for UTF-8 strings, where a character can be represented by multiple bytes.