| 50 | String(const char *s) { _str = s; }; |
| 51 | int length() { return strlen(_str); }; |
| 52 | const char *c_str() { return _str; }; |
| 53 | void toCharArray(char *buf, unsigned int bufsize, unsigned int index = 0) const { |
| 54 | memcpy(buf, _str + index, std::min(bufsize, strlen(_str))); |
| 55 | }; |
no outgoing calls
no test coverage detected