We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffe098f commit 93cba04Copy full SHA for 93cba04
cores/arduino/WString.h
@@ -161,6 +161,10 @@ class String
161
void toCharArray(char *buf, unsigned int bufsize, unsigned int index=0) const
162
{getBytes((unsigned char *)buf, bufsize, index);}
163
const char * c_str() const { return buffer; }
164
+ char* begin() { return buffer; }
165
+ char* end() { return buffer + length(); }
166
+ const char* begin() const { return c_str(); }
167
+ const char* end() const { return c_str() + length(); }
168
169
// search
170
int indexOf( char ch ) const;
0 commit comments