R/RcppExports.R

Defines functions stringTrim

Documented in stringTrim

# This file was generated by Rcpp::compileAttributes
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

#' Trim whitespace from start and end of string
#' 
#' @usage trim(input, side = "both")
#' @param input input character vector
#' @param side side on which whitespace is removed (left, right, or both)
#' @return character vector with leading and trailing whitespace removed
#' @examples 
#' \dontrun{
#' trimString("\n\nString with trailing and leading white space \t")
#' }
stringTrim <- function(input, side = "both") {
    .Call('RcppStrings_stringTrim', PACKAGE = 'RcppStrings', input, side)
}

# Register entry points for exported C++ functions
methods::setLoadAction(function(ns) {
    .Call('RcppStrings_RcppExport_registerCCallable', PACKAGE = 'RcppStrings')
})
jjallaire/RcppStrings documentation built on May 19, 2019, 11:37 a.m.