mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-18 12:54:25 +01:00
Protecting String copy() and move().
This commit is contained in:
parent
488e672ea0
commit
6f3ceb399d
@ -61,11 +61,6 @@ public:
|
|||||||
unsigned char reserve(unsigned int size);
|
unsigned char reserve(unsigned int size);
|
||||||
inline unsigned int length(void) const {return len;}
|
inline unsigned int length(void) const {return len;}
|
||||||
|
|
||||||
// copy and move
|
|
||||||
String & copy(const char *cstr, unsigned int length);
|
|
||||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
|
||||||
void move(String &rhs);
|
|
||||||
#endif
|
|
||||||
String & operator = (const String &rhs);
|
String & operator = (const String &rhs);
|
||||||
String & operator = (const char *cstr);
|
String & operator = (const char *cstr);
|
||||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||||
@ -160,6 +155,12 @@ protected:
|
|||||||
void init(void);
|
void init(void);
|
||||||
unsigned char changeBuffer(unsigned int maxStrLen);
|
unsigned char changeBuffer(unsigned int maxStrLen);
|
||||||
unsigned char concat(const char *cstr, unsigned int length);
|
unsigned char concat(const char *cstr, unsigned int length);
|
||||||
|
|
||||||
|
// copy and move
|
||||||
|
String & copy(const char *cstr, unsigned int length);
|
||||||
|
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||||
|
void move(String &rhs);
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
class StringSumHelper : public String
|
class StringSumHelper : public String
|
||||||
|
Loading…
x
Reference in New Issue
Block a user