aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/WString.h
AgeCommit message (Collapse)Author
2016-09-12Spaces to tabIván Pérez
2016-09-12WString: add `toDouble`Iván Pérez
`toFloat` internally converts into double and then truncates into a float, so why not add a method to return the double?
2016-06-28WString.h: allow modifying the string while iteratingIvan-Perez
2016-06-28WString.h: Add const qualifier to `begin` and `end` functionsIvan-Perez
2016-04-20Removed extra whitespaces in WString.hCristian Maglie
2016-04-20Removed C++11 dependency for `begin()` and `end()`Christopher Andrews
As I was not able to base the return types of `begin()` & `end()` off the c_str() function, I have changed the source so the features can be used by C++98 code, while still allowing ranged loops in C++11.
2016-04-20Updated String library to use C++11 iterators.Christopher Andrews
This will allow using the String library in a ranged for loop: ```C++ String s = "Hi, this is a test"; for( char c : s ) Serial.print( c ); ```
2015-07-16Check for __cplusplus >= 201103L as well as __GXX_EXPERIMENTAL_CXX0X__Matthijs Kooijman
Gcc 4.8 defines __cplusplus as 201103L, so we can check for that now. It still also defines __GXX_EXPERIMENTAL_CXX0X__, but this could help on other compilers, or if gcc ever decides to stop defining the experimental macro.
2013-09-03Fixed String class regression after f80c6c5f35cddcf4761a3c97feb8504425e9d27dCristian Maglie
This should make explicit String-from-integer constructor working again: int a = 10; String(a, 4);
2013-08-20Removed unused flags from String (free 1 byte of SRAM)Cristian Maglie
2013-06-21String: changed default to 2 decimal digitsCristian Maglie
2013-06-06Merged various bugfix / improvements to String class.Cristian Maglie
Merge branch 'master' into ide-1.5.x
2013-06-06Added support for Flash string on String class.Cristian Maglie
2013-06-06String class: removed deep copy on substring method.Cristian Maglie
Small code cleanup.
2013-06-06add String.toFloatTevin Zhang
2013-06-05Added remove methods to WStringRyan Esteves
2013-05-06Added const modifier to String.c_str()Cristian Maglie
2013-05-06Added c_str() method to String class.Cristian Maglie
2012-08-16Fix issue 866Adam Dunlap
Fix issue 866 by adding a const qualifier to what the F macro casts to.
2011-10-27Revert "Merge branch 'master' of github.com:arduino/Arduino into ↵Zach Eveland
diskloader_reboot" This reverts commit df9835efafd13685251749bc210c0b96a18a96a5, reversing changes made to ec45af8bfa9222a807c075dd1db4b5aa798bba03. Conflicts: hardware/arduino/variants/mega/pins_arduino.h libraries/Ethernet/examples/PachubeClientString/PachubeClientString.ino
2011-03-03Fixing warnings (David H. Lynch Jr).David A. Mellis
2010-11-29Redoing 448222e4b65e0cf44dfc0c494f7f76901f1fabea without all the extra files.David A. Mellis
Adds toInt() to String, WCharacter.h (from Wiring), and an SD Datalogger example.
2010-11-29Revert "added toInt() function to WString".David A. Mellis
This reverts commit 448222e4b65e0cf44dfc0c494f7f76901f1fabea.
2010-11-29added toInt() function to WStringTom Igoe
2010-08-28Changing String::toCharArray() and getBytes() to accept a buffer, rather ↵David A. Mellis
than return one. That way they don't expose the internal representation of the String class, allowing future optimization. Thanks to Paul Stoffregen.
2010-08-18Adding some basic error checking to the String class (i.e. checking for a ↵David A. Mellis
non-null buffer before modifying its contents).
2010-08-06No longer requiring WProgram.h for Print / Stream classes (replaced ↵David A. Mellis
Arduino-specific type names in String).
2010-07-27added more String examplesTom Igoe
2010-07-27Reverting changes to String class and modifying to allow + and += to work on ↵David A. Mellis
more types.
2010-07-27removed append() from String libraryTom Igoe
2010-07-27checked in Xiaoyang Feng's changes to String libraryTom Igoe
2010-07-27Checked in Xiaoyang's changes to String libraryTom Igoe
2010-07-04Adding support for printing Strings to the Print class.David A. Mellis
2010-07-04Modifying String from new/delete to malloc()/free(). Also #include'ing ↵David A. Mellis
WString.h from WProgram.h.
2010-07-04Adding WString.h and WString.cpp straight from Wiring (r. 726). Won't ↵David A. Mellis
actually work yet.