mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-19 08:52:15 +01:00
WString.h: allow modifying the string while iterating
This commit is contained in:
parent
07fa22fd52
commit
f68a722bde
@ -159,8 +159,10 @@ public:
|
|||||||
char& operator [] (unsigned int index);
|
char& operator [] (unsigned int index);
|
||||||
void getBytes(unsigned char *buf, unsigned int bufsize, unsigned int index=0) const;
|
void getBytes(unsigned char *buf, unsigned int bufsize, unsigned int index=0) const;
|
||||||
void toCharArray(char *buf, unsigned int bufsize, unsigned int index=0) const
|
void toCharArray(char *buf, unsigned int bufsize, unsigned int index=0) const
|
||||||
{getBytes((unsigned char *)buf, bufsize, index);}
|
{ getBytes((unsigned char *)buf, bufsize, index); }
|
||||||
const char* c_str() const { return buffer; }
|
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* begin() const { return c_str(); }
|
||||||
const char* end() const { return c_str() + length(); }
|
const char* end() const { return c_str() + length(); }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user