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

Method String

inst/include/Rcpp/String.h:55–58  ·  view source on GitHub ↗

default constructor */

Source from the content-addressed store, hash-verified

53
54 /** default constructor */
55 String(): data(Rf_mkCharCE("", CE_UTF8)), token(R_NilValue), buffer(), valid(true), buffer_ready(true), enc(CE_UTF8) {
56 token = Rcpp_PreciousPreserve(data);
57 RCPP_STRING_DEBUG("String()");
58 }
59
60 /** copy constructor */
61 String(const String& s) : data(R_NilValue), token(R_NilValue), buffer(s.buffer), valid(s.valid), buffer_ready(s.buffer_ready), enc(s.enc) {

Callers

nothing calls this directly

Calls 6

Rcpp_PreciousPreserveFunction · 0.85
make_charsexpFunction · 0.85
r_coerce<REALSXP,STRSXP>Function · 0.85
r_coerce<CPLXSXP,STRSXP>Function · 0.85
get_sexpMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected