We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07fa22f commit f68a722Copy full SHA for f68a722
hardware/arduino/avr/cores/arduino/WString.h
@@ -159,8 +159,10 @@ class String
159
char& operator [] (unsigned int index);
160
void getBytes(unsigned char *buf, unsigned int bufsize, unsigned int index=0) const;
161
void toCharArray(char *buf, unsigned int bufsize, unsigned int index=0) const
162
- {getBytes((unsigned char *)buf, bufsize, index);}
+ { 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
0 commit comments