We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f68a722 commit 0e89043Copy full SHA for 0e89043
hardware/arduino/sam/cores/arduino/WString.h
@@ -161,8 +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
- const char* begin() { return c_str(); }
165
- const char* end() { return c_str() + length(); }
+ char* begin() { return buffer; }
+ 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