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
If you're processing text in a language written from right to left, these methods do the opposite of what they claim. They really refer to the start and end of the slice.
It might be good to have trim_start and trim_end aliases (with _matches variants as well) to help people write clearer code in applications that typically process right-to-left text.
The rest of the API is pretty good about avoiding this mistake; the only other exception I noticed was the std::fmt alignment flags.