It seems that several of the String
methods (so far I'm sure it applies to trim()
and the to upper/lower functions) in the Arduino library have been modified to alter the String rather than return a new one. Is there a complete list of which methods have been modified? The release notes have the following unhelpful statement:
- The String class has been reimplemented as well, by Paul Stoffregen. This new version is more memory-efficient and robust. Some functions which previously returned new string instances (e.g. trim() and toUpperCase()) have been changed to instead modify strings in place.
Thanks!