| 121 | inline const char* utf8_string(SEXP s) { return Rf_translateCharUTF8(s); } |
| 122 | |
| 123 | inline R_xlen_t r_string_size(SEXP s) { |
| 124 | if (s == NA_STRING) { |
| 125 | return 0; |
| 126 | } else { |
| 127 | return strlen(Rf_translateCharUTF8(s)); |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | } // namespace unsafe |
| 132 |
no outgoing calls
no test coverage detected