Provide String::indexOf for a char* needle#7706
Provide String::indexOf for a char* needle#7706earlephilhower merged 7 commits intoesp8266:masterfrom paulocsanz:master
Conversation
earlephilhower
left a comment
There was a problem hiding this comment.
Thanks for not only filing an issue, but proposing a solution too!
You mentioned progmem in your issue and changing to strstr_Pwill make it "just work" with RAM or PROGMEM strings.
strstr_P documentation says only s2 must be from PROGMEM, so we are safe.
|
I've went ahead and implemented the changes. Should I change all But again I'm not an expert in this ecosystem. Btw did I break anything? The CI seems to have errored (I may have hurt their feelings by force pushing too much lol). |
(click on "details" on any CI line) edit: It is quite never needed to force-push. Pushing is OK, pulling is needed before pushing if the branch has been updated from github. That way, we have history. The history is anyway squashed at merge time on this repository. |
|
Thank you @d-a-v! I've just fixed it. |
Fixes #7705