Skip to content
Snippets Groups Projects
Commit b527f114 authored by Cristian Maglie's avatar Cristian Maglie
Browse files

Strings now support iterators

parent 8ca15b1a
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ SAMD CORE 1.6.6
* On-board RX-TX LEDs now blinks when there is activity on the native USB port
* Fixed platform.txt, the core now compiles again with Arduino IDE <=1.6.5. Thanks @per1234
* Fixed Wire.write(0x00) "ambiguos method" error
* String class now supports iterators. Thanks @Chris--A
SAMD CORE 1.6.5 2016.04.02
......
......@@ -161,6 +161,8 @@ public:
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(); }
// search
int indexOf( char ch ) const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment