WString.h: allow modifying the string while iterating
This commit is contained in:
parent
69421dc2c7
commit
2d13ebbb3e
|
@ -161,6 +161,8 @@ public:
|
|||
void toCharArray(char *buf, unsigned int bufsize, unsigned int index=0) const
|
||||
{ getBytes((unsigned char *)buf, bufsize, index); }
|
||||
const char* c_str() const { return buffer; }
|
||||
char* begin() { return buffer; }
|
||||
char* end() { return buffer + length(); }
|
||||
const char* begin() const { return c_str(); }
|
||||
const char* end() const { return c_str() + length(); }
|
||||
|
||||
|
|
Loading…
Reference in New Issue