R/RcppExports.R

Defines functions c_sf_concat sf_compare sf_match sf_toupper sf_tolower random_strings sf_gsub sf_split sf_grepl sf_writeLines sf_readLines sf_collapse c_sf_paste sf_substr sf_nchar convert_to_sf sf_iconv sf_assign sf_vector materialize get_string_type get_pcre2_info check_simd is_tbb get_is_utf8_locale unset_is_utf8_locale set_is_utf8_locale

Documented in convert_to_sf get_string_type materialize random_strings sf_assign sf_collapse sf_compare sf_grepl sf_gsub sf_iconv sf_match sf_nchar sf_readLines sf_split sf_substr sf_tolower sf_toupper sf_vector sf_writeLines

# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

set_is_utf8_locale <- function() {
    invisible(.Call(`_stringfish_set_is_utf8_locale`))
}

unset_is_utf8_locale <- function() {
    invisible(.Call(`_stringfish_unset_is_utf8_locale`))
}

get_is_utf8_locale <- function() {
    .Call(`_stringfish_get_is_utf8_locale`)
}

is_tbb <- function() {
    .Call(`_stringfish_is_tbb`)
}

check_simd <- function() {
    invisible(.Call(`_stringfish_check_simd`))
}

get_pcre2_info <- function() {
    .Call(`_stringfish_get_pcre2_info`)
}

get_string_type <- function(x) {
    .Call(`_stringfish_get_string_type`, x)
}

materialize <- function(x) {
    .Call(`_stringfish_materialize`, x)
}

sf_vector <- function(len) {
    .Call(`_stringfish_sf_vector`, len)
}

sf_assign <- function(x, i, e) {
    invisible(.Call(`_stringfish_sf_assign`, x, i, e))
}

sf_iconv <- function(x, from, to, nthreads = getOption("stringfish.nthreads", 1L)) {
    .Call(`_stringfish_sf_iconv`, x, from, to, nthreads)
}

convert_to_sf <- function(x) {
    .Call(`_stringfish_convert_to_sf`, x)
}

sf_nchar <- function(x, type = "chars", nthreads = getOption("stringfish.nthreads", 1L)) {
    .Call(`_stringfish_sf_nchar`, x, type, nthreads)
}

sf_substr <- function(x, start, stop, nthreads = getOption("stringfish.nthreads", 1L)) {
    .Call(`_stringfish_sf_substr`, x, start, stop, nthreads)
}

c_sf_paste <- function(dots, sep, nthreads = 1L) {
    .Call(`_stringfish_c_sf_paste`, dots, sep, nthreads)
}

sf_collapse <- function(x, collapse) {
    .Call(`_stringfish_sf_collapse`, x, collapse)
}

sf_readLines <- function(file, encoding = "UTF-8") {
    .Call(`_stringfish_sf_readLines`, file, encoding)
}

sf_writeLines <- function(text, file, sep = "\n", na_value = "NA", encode_mode = "UTF-8") {
    invisible(.Call(`_stringfish_sf_writeLines`, text, file, sep, na_value, encode_mode))
}

sf_grepl <- function(subject, pattern, encode_mode = "auto", fixed = FALSE, nthreads = getOption("stringfish.nthreads", 1L)) {
    .Call(`_stringfish_sf_grepl`, subject, pattern, encode_mode, fixed, nthreads)
}

sf_split <- function(subject, split, encode_mode = "auto", fixed = FALSE, nthreads = getOption("stringfish.nthreads", 1L)) {
    .Call(`_stringfish_sf_split`, subject, split, encode_mode, fixed, nthreads)
}

sf_gsub <- function(subject, pattern, replacement, encode_mode = "auto", fixed = FALSE, nthreads = getOption("stringfish.nthreads", 1L)) {
    .Call(`_stringfish_sf_gsub`, subject, pattern, replacement, encode_mode, fixed, nthreads)
}

random_strings <- function(N, string_size = 50L, charset = "abcdefghijklmnopqrstuvwxyz", vector_mode = "stringfish") {
    .Call(`_stringfish_random_strings`, N, string_size, charset, vector_mode)
}

sf_tolower <- function(x) {
    .Call(`_stringfish_sf_tolower`, x)
}

sf_toupper <- function(x) {
    .Call(`_stringfish_sf_toupper`, x)
}

sf_match <- function(x, table, nthreads = getOption("stringfish.nthreads", 1L)) {
    .Call(`_stringfish_sf_match`, x, table, nthreads)
}

sf_compare <- function(x, y, nthreads = getOption("stringfish.nthreads", 1L)) {
    .Call(`_stringfish_sf_compare`, x, y, nthreads)
}

c_sf_concat <- function(x) {
    .Call(`_stringfish_c_sf_concat`, x)
}

Try the stringfish package in your browser

Any scripts or data that you put into this service are public.

stringfish documentation built on May 31, 2023, 5:19 p.m.