string_view: implement iterator API for string_view#948
string_view: implement iterator API for string_view#948lukaszstolarczuk merged 3 commits intopmem:masterfrom KFilipek:test-iterators
Conversation
- add forward iterator API for string_view
Codecov Report
@@ Coverage Diff @@
## master #948 +/- ##
==========================================
+ Coverage 95.94% 96.17% +0.23%
==========================================
Files 48 48
Lines 6138 6146 +8
==========================================
+ Hits 5889 5911 +22
+ Misses 249 235 -14
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
igchor
left a comment
There was a problem hiding this comment.
Reviewed 3 of 4 files at r1.
Reviewable status: 3 of 4 files reviewed, 6 unresolved discussions (waiting on @KFilipek)
tests/external/libcxx/string.view/string.view.iterators/begin.pass.cpp, line 8 at r1 (raw file):
// //===----------------------------------------------------------------------===//
Intel license
tests/external/libcxx/string.view/string.view.iterators/begin.pass.cpp, line 52 at r1 (raw file):
test(string_view("123")); test(wstring_view(L"123")); #if TEST_STD_VER >= 11
ifdef not needed
tests/external/libcxx/string.view/string.view.iterators/begin.pass.cpp, line 57 at r1 (raw file):
#endif #if TEST_STD_VER > 11
.
tests/external/libcxx/string.view/string.view.iterators/end.pass.cpp, line 8 at r1 (raw file):
// //===----------------------------------------------------------------------===//
.
tests/external/libcxx/string.view/string.view.iterators/end.pass.cpp, line 50 at r1 (raw file):
{ typedef pmem::obj::string_view string_view; #if defined(__cpp_lib_char8_t) && __cpp_lib_char8_t >= 201811L
not needed?
tests/external/libcxx/string.view/string.view.iterators/end.pass.cpp, line 71 at r1 (raw file):
#endif #if TEST_STD_VER > 11
.
- add string_view iterators
KFilipek
left a comment
There was a problem hiding this comment.
Reviewed 3 of 3 files at r3.
Reviewable status: all files reviewed, 6 unresolved discussions (waiting on @igchor)
tests/external/libcxx/string.view/string.view.iterators/begin.pass.cpp, line 8 at r1 (raw file):
Previously, igchor (Igor Chorążewicz) wrote…
Intel license
Done.
tests/external/libcxx/string.view/string.view.iterators/begin.pass.cpp, line 52 at r1 (raw file):
Previously, igchor (Igor Chorążewicz) wrote…
ifdef not needed
Done.
tests/external/libcxx/string.view/string.view.iterators/begin.pass.cpp, line 57 at r1 (raw file):
Previously, igchor (Igor Chorążewicz) wrote…
.
Done.
tests/external/libcxx/string.view/string.view.iterators/end.pass.cpp, line 8 at r1 (raw file):
Previously, igchor (Igor Chorążewicz) wrote…
.
Done.
tests/external/libcxx/string.view/string.view.iterators/end.pass.cpp, line 50 at r1 (raw file):
Previously, igchor (Igor Chorążewicz) wrote…
not needed?
Done.
tests/external/libcxx/string.view/string.view.iterators/end.pass.cpp, line 71 at r1 (raw file):
Previously, igchor (Igor Chorążewicz) wrote…
.
Done.
lukaszstolarczuk
left a comment
There was a problem hiding this comment.
Reviewed 1 of 4 files at r1, 3 of 3 files at r3.
Reviewable status: all files reviewed, 6 unresolved discussions (waiting on @igchor)
igchor
left a comment
There was a problem hiding this comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @KFilipek)
include/libpmemobj++/string_view.hpp, line 73 at r3 (raw file):
constexpr const_iterator end() const noexcept; constexpr const_iterator cend() const noexcept; #ifdef XXX
You can add support for it in this PR, it;s quite trivial
igchor
left a comment
There was a problem hiding this comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @KFilipek)
This PR introduce iterator API for string_view class.
This change is