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

Update string class to upstream version

parent 49a66b47
No related branches found
No related tags found
No related merge requests found
SAMD CORE SAMD CORE
* Fixed Serial.flush() blocking before any writes. Thanks @hangmoh * Fixed Serial.flush() blocking before any writes. Thanks @hangmoh
* Added snprintf_P to avr/pgmspace.h stub. Thanks @jantje * Added snprintf_P to avr/pgmspace.h stub. Thanks @jantje
* Another small fix to String iterators. Thanks @Ivan-Perez @Chris--A
SAMD CORE 1.6.6 2016.05.19 SAMD CORE 1.6.6 2016.05.19
......
...@@ -159,10 +159,12 @@ public: ...@@ -159,10 +159,12 @@ 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; }
const char* begin() { return c_str(); } char* begin() { return buffer; }
const char* end() { return c_str() + length(); } char* end() { return buffer + length(); }
const char* begin() const { return c_str(); }
const char* end() const { return c_str() + length(); }
// search // search
int indexOf( char ch ) const; 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