WString: unify numeric conversion and fix assignments by mcspr · Pull Request #8526 · esp8266/Arduino

@mcspr

Restore the pre-3.0.0 behaviour when we could assign numeric values to
the string object. After introducing `operator =(char)`, everything was
converted to `char` instead of the expected 'stringification' of the
number (built-in int, long, unsigned int, unsigned long, long long,
unsigned long long, float and double)

added 7 commits

March 31, 2022 01:29
… decimalPlaces

branch via if (base == 10) { sprintf(...) } else { ... } instead of separate funcs
reuse the constructor for numeric types where it's possible
nonstd arduino funcs expect this usage pattern

mcspr

@mcspr

@mcspr mcspr deleted the arduino-string-can-assign-stuff branch

April 5, 2022 12:31

@mcspr mcspr linked an issue

Apr 11, 2022

that may be closed by this pull request

@TD-er TD-er mentioned this pull request

Aug 25, 2022

hasenradball pushed a commit to hasenradball/Arduino that referenced this pull request

Nov 18, 2024
Restore the pre-3.0.0 behaviour when we could assign numeric values to
the string object. After introducing operator =(char), everything was
converted to char instead of the expected 'stringification' of the
number (built-in int, long, unsigned int, unsigned long, long long,
unsigned long long, float and double)

Add toString() that handles conversions, re-use it through out the class

Fix esp8266#8430