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

Function trim_left

inst/include/Rcpp/sugar/functions/strings/trimws.h:40–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40inline const char* trim_left(const char* str) {
41 if (!str) {
42 return "";
43 }
44
45 while (isws(*str)) {
46 ++str;
47 }
48
49 return str;
50}
51
52inline const char* trim_right(const char* str, R_len_t sz, std::string* buff) {
53 if (!str) {

Callers 1

trimwsFunction · 0.85

Calls 1

iswsFunction · 0.85

Tested by

no test coverage detected