Skip to content

Commit b527f11

Browse files
committed
Strings now support iterators
1 parent 8ca15b1 commit b527f11

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ SAMD CORE 1.6.6
66
* On-board RX-TX LEDs now blinks when there is activity on the native USB port
77
* Fixed platform.txt, the core now compiles again with Arduino IDE <=1.6.5. Thanks @per1234
88
* Fixed Wire.write(0x00) "ambiguos method" error
9+
* String class now supports iterators. Thanks @Chris--A
910

1011
SAMD CORE 1.6.5 2016.04.02
1112

cores/arduino/WString.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ class String
161161
void toCharArray(char *buf, unsigned int bufsize, unsigned int index=0) const
162162
{getBytes((unsigned char *)buf, bufsize, index);}
163163
const char * c_str() const { return buffer; }
164+
const char* begin() { return c_str(); }
165+
const char* end() { return c_str() + length(); }
164166

165167
// search
166168
int indexOf( char ch ) const;

0 commit comments

Comments
 (0)