You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working with the Arduino String class, I've found that I couldn't
efficiently combine it with some external libraries that explicitely
pass char* and length around, without nul-terminating their strings.
This prompted me to modify and expose the concat (const char* cstr,
unsigned int length) method, add a new String(const char* cstr, unsigned
int length) constructor. While I was going over the string class, I
found some other minor improvements, which are included here.
This is a port of arduino/Arduino#1936. The commits are identical,
except for some improved commit messages and one commit was dropped
since that change was already made by someone else in the meantime.
I've provided some testcases by updating the string examples:
arduino/Arduino#9239
If this is ok to merge, I'll also provide a PR for the reference
documentation.
cherry-pick from: arduino/ArduinoCore-API#97
0 commit comments