This adds six calls each to basic_string and basic_string_view:
- starts_with (3 variants)
- ends_with (3 variants)
This is a C++2a feature
Paths
| Differential D40586
Implement p0457r2 - String Prefix and Suffix Checking ClosedPublic Authored by mclow.lists on Nov 28 2017, 3:32 PM.
Details
Summary This adds six calls each to basic_string and basic_string_view:
This is a C++2a feature
Diff Detail Event Timelinersmith added inline comments.
This revision is now accepted and ready to land.Dec 4 2017, 12:12 PM
Revision Contents
Diff 124677 include/string
include/string_view
test/std/strings/basic.string/string.ends_with/ends_with.char.pass.cpp
test/std/strings/basic.string/string.ends_with/ends_with.ptr.pass.cpp
test/std/strings/basic.string/string.ends_with/ends_with.string_view.pass.cpp
test/std/strings/basic.string/string.modifiers/string_append/push_back.pass.cpp
test/std/strings/basic.string/string.starts_with/starts_with.char.pass.cpp
test/std/strings/basic.string/string.starts_with/starts_with.ptr.pass.cpp
test/std/strings/basic.string/string.starts_with/starts_with.string_view.pass.cpp
test/std/strings/string.view/string.view.template/ends_with.char.pass.cpp
test/std/strings/string.view/string.view.template/ends_with.ptr.pass.cpp
test/std/strings/string.view/string.view.template/ends_with.string_view.pass.cpp
test/std/strings/string.view/string.view.template/starts_with.char.pass.cpp
test/std/strings/string.view/string.view.template/starts_with.ptr.pass.cpp
test/std/strings/string.view/string.view.template/starts_with.string_view.pass.cpp
|
The indentation here seems off. Should these have a // C++2a comment?