Skip to content

Commit 7530d2b

Browse files
committed
Added string iterator in sam core.
See #2179
1 parent 8e82103 commit 7530d2b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)