MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / as_string_elt__impl

Function as_string_elt__impl

inst/include/Rcpp/internal/export.h:29–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28 template <typename T>
29 std::wstring as_string_elt__impl( SEXP x, R_xlen_t i, Rcpp::traits::true_type ){
30 const char* y = char_get_string_elt( x, i ) ;
31 return std::wstring(y, y+strlen(y) ) ;
32 }
33
34 template <typename T>
35 std::string as_string_elt__impl( SEXP x, R_xlen_t i, Rcpp::traits::false_type ){

Callers

nothing calls this directly

Calls 1

char_get_string_eltFunction · 0.50

Tested by

no test coverage detected