This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] Implement P1679r3 'string contains function' for c++2b
AbandonedPublic

Authored by Fabio on Jan 8 2021, 12:57 PM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project

Diff Detail

Event Timeline

Fabio created this revision.Jan 8 2021, 12:57 PM
Fabio requested review of this revision.Jan 8 2021, 12:57 PM
Fabio added inline comments.Jan 8 2021, 1:04 PM
libcxx/include/string
327

I did not know what the consistency story here should be ... string_view below had constexpr in the synopsis, string didn't. I went with leaving it in, seemed more forward looking

1441–1451

I took the design of forwarding to the string_view functionality from ends_with above

libcxx/test/std/strings/basic.string/string.contains/contains.ptr.pass.cpp
57

I "reused" adapted starts_with tests and added a few contains specific cases

Fabio added a comment.Jan 8 2021, 1:08 PM

@tschuett, I see sorry for the noise

Thanks for your contribution! We need to document how to search for open reviews. I've created some Differential queries that allow seeing everything open for libc++, but I'm unable to make them global (so you can see them too) because I'm not an admin. I'll resume work on that because this duplication of effort is not acceptable.

Can you please abandon the patch so we clear up the queue? Thanks and sorry this happened.

Fabio abandoned this revision.Jan 8 2021, 1:14 PM

Of course

I just wanted to help you!

We should now have Differential queries that allow searching for open libc++ reviews. If you go to https://reviews.llvm.org/differential/, in the sidebar to the left, you should see Libc++ Open Reviews and Libc++ Open Reviews - Reviews Needed. This should make it easier to find existing work. I'll document it now.