aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/WString.h
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2011-03-11 18:04:31 -0500
committerDavid A. Mellis <d.mellis@arduino.cc>2011-03-11 18:04:31 -0500
commit99e0c131fc0bc286e42e848d56beceb3add66e93 (patch)
tree282fed17761bed42de133f40d241b8fc0a1f270c /cores/arduino/WString.h
parent22786eaed2494bf6fcd9b934f857dec1202b3148 (diff)
Renaming append() back to concat().
Diffstat (limited to 'cores/arduino/WString.h')
-rw-r--r--cores/arduino/WString.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/cores/arduino/WString.h b/cores/arduino/WString.h
index 6111e20..4a680e2 100644
--- a/cores/arduino/WString.h
+++ b/cores/arduino/WString.h
@@ -72,23 +72,23 @@ public:
#endif
String & operator = (char c);
- // append
- String & append(const String &str);
- String & append(const char *cstr);
- String & append(char c);
- String & append(unsigned char c) {return append((char)c);}
- String & append(int num);
- String & append(unsigned int num);
- String & append(long num);
- String & append(unsigned long num);
- String & operator += (const String &rhs) {return append(rhs);}
- String & operator += (const char *cstr) {return append(cstr);}
- String & operator += (char c) {return append(c);}
- String & operator += (unsigned char c) {return append((char)c);}
- String & operator += (int num) {return append(num);}
- String & operator += (unsigned int num) {return append(num);}
- String & operator += (long num) {return append(num);}
- String & operator += (unsigned long num) {return append(num);}
+ // concat
+ String & concat(const String &str);
+ String & concat(const char *cstr);
+ String & concat(char c);
+ String & concat(unsigned char c) {return concat((char)c);}
+ String & concat(int num);
+ String & concat(unsigned int num);
+ String & concat(long num);
+ String & concat(unsigned long num);
+ String & operator += (const String &rhs) {return concat(rhs);}
+ String & operator += (const char *cstr) {return concat(cstr);}
+ String & operator += (char c) {return concat(c);}
+ String & operator += (unsigned char c) {return concat((char)c);}
+ String & operator += (int num) {return concat(num);}
+ String & operator += (unsigned int num) {return concat(num);}
+ String & operator += (long num) {return concat(num);}
+ String & operator += (unsigned long num) {return concat(num);}
// concatenate
friend StringSumHelper & operator + (const StringSumHelper &lhs, const String &rhs);
@@ -156,7 +156,7 @@ protected:
protected:
void init(void);
unsigned char changeBuffer(unsigned int maxStrLen);
- String & append(const char *cstr, unsigned int length);
+ String & concat(const char *cstr, unsigned int length);
};
class StringSumHelper : public String