aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/WString.h
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@arduino.cc>2016-04-20 20:30:24 +0200
committerCristian Maglie <c.maglie@arduino.cc>2016-04-20 20:30:24 +0200
commit0e80ea660381067ce44a31d8bf8457dfb5bbd103 (patch)
tree87a4686964560075628c29746ec1063df9f9195a /cores/arduino/WString.h
parent6d6c9d36226be9312e4cf6e48f861a1647d1acaf (diff)
Removed extra whitespaces in WString.h
Diffstat (limited to 'cores/arduino/WString.h')
-rw-r--r--cores/arduino/WString.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/cores/arduino/WString.h b/cores/arduino/WString.h
index 7335d4e..b7d3852 100644
--- a/cores/arduino/WString.h
+++ b/cores/arduino/WString.h
@@ -81,7 +81,7 @@ public:
inline unsigned int length(void) const {return len;}
// creates a copy of the assigned value. if the value is null or
- // invalid, or if the memory allocation fails, the string will be
+ // invalid, or if the memory allocation fails, the string will be
// marked as invalid ("if (s)" will be false).
String & operator = (const String &rhs);
String & operator = (const char *cstr);
@@ -92,10 +92,10 @@ public:
#endif
// concatenate (works w/ built-in types)
-
+
// returns true on success, false on failure (in which case, the string
- // is left unchanged). if the argument is null or invalid, the
- // concatenation is considered unsucessful.
+ // is left unchanged). if the argument is null or invalid, the
+ // concatenation is considered unsucessful.
unsigned char concat(const String &str);
unsigned char concat(const char *cstr);
unsigned char concat(char c);
@@ -107,7 +107,7 @@ public:
unsigned char concat(float num);
unsigned char concat(double num);
unsigned char concat(const __FlashStringHelper * str);
-
+
// if there's not enough memory for the concatenated value, the string
// will be left unchanged (but this isn't signalled in any way)
String & operator += (const String &rhs) {concat(rhs); return (*this);}
@@ -162,7 +162,7 @@ public:
{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(); }
+ const char* end() { return c_str() + length(); }
// search
int indexOf( char ch ) const;