1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00

WString.h: Add const qualifier to begin and end functions

This commit is contained in:
Ivan-Perez 2016-05-12 10:57:14 +02:00 committed by Cristian Maglie
parent ae0d9dcc22
commit 07fa22fd52

View File

@ -160,9 +160,9 @@ public:
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
{getBytes((unsigned char *)buf, bufsize, index);}
const char * c_str() const { return buffer; }
const char* begin() { return c_str(); }
const char* end() { return c_str() + length(); }
const char* c_str() const { return buffer; }
const char* begin() const { return c_str(); }
const char* end() const { return c_str() + length(); }
// search
int indexOf( char ch ) const;