This is an archive of the discontinued LLVM Phabricator instance.

[libc] Add a method `find_last_of` to StringView.
ClosedPublic

Authored by sivachandra on Jul 19 2022, 12:27 PM.

Diff Detail

Event Timeline

sivachandra created this revision.Jul 19 2022, 12:27 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 19 2022, 12:27 PM
sivachandra requested review of this revision.Jul 19 2022, 12:27 PM
jeffbailey accepted this revision.Jul 19 2022, 12:52 PM

Thanks! One comment within.

libc/test/src/__support/CPP/stringview_test.cpp
203

I apparently missed this in find_first_of, too, but it would be nice to have a test on an empty string to make sure that's handled correctly.

This revision is now accepted and ready to land.Jul 19 2022, 12:52 PM

Add tests for empty string views.

This revision was landed with ongoing or failed builds.Jul 19 2022, 3:44 PM
This revision was automatically updated to reflect the committed changes.