wxWidgets / wxWidgets

Cross-Platform C++ GUI Library
https://www.wxwidgets.org/
6.32k stars 1.79k forks source link

Fix wxString::BeforeFirst() when "rest" is the string itself #25077

Closed vadz closed 3 weeks ago

vadz commented 3 weeks ago

This didn't work correctly before, but there doesn't seem to be any good reason to not allow this, as it allows to naturally extract some leading prefix from a string and it also already worked for BeforeLast(), so make it work for BeforeFirst() too.