aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/WString.h
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2011-03-11 18:54:58 -0500
committerDavid A. Mellis <d.mellis@arduino.cc>2011-03-11 18:54:58 -0500
commitb4b32f60f1c156e76117dab69479c193a861be23 (patch)
tree60198d3bb0333bd427c0b16b7c91db99349e0afc /cores/arduino/WString.h
parent99e0c131fc0bc286e42e848d56beceb3add66e93 (diff)
Don't return the string when modifying its value.
Changing toLowerCase(), toUpperCase(), trim() and replace() to return void instead of a reference to the string that's just been changed. That way, it's clear that the functions modify the string they've been called on.
Diffstat (limited to 'cores/arduino/WString.h')
-rw-r--r--cores/arduino/WString.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/cores/arduino/WString.h b/cores/arduino/WString.h
index 4a680e2..164eeac 100644
--- a/cores/arduino/WString.h
+++ b/cores/arduino/WString.h
@@ -139,11 +139,11 @@ public:
String substring( unsigned int beginIndex, unsigned int endIndex ) const;
// modification
- String & replace(char find, char replace);
- String & replace(const String& find, const String& replace);
- String & toLowerCase(void);
- String & toUpperCase(void);
- String & trim(void);
+ void replace(char find, char replace);
+ void replace(const String& find, const String& replace);
+ void toLowerCase(void);
+ void toUpperCase(void);
+ void trim(void);
// parsing/conversion
long toInt(void) const;