Implement P0457R2 String Prefix and Suffix Checking.
authorEdward Smith-Rowland <3dw4rd@verizon.net>
Fri, 30 Nov 2018 16:26:02 +0000 (16:26 +0000)
committerEdward Smith-Rowland <emsr@gcc.gnu.org>
Fri, 30 Nov 2018 16:26:02 +0000 (16:26 +0000)
commit5bd624fbde5f6307fb71041a38aa0914eab9f6f9
tree01193230aea60bdb4ff7b238211492b084f6b0ad
parent32bbb362efbc5d0a9269c8f32258360c622121db
Implement P0457R2 String Prefix and Suffix Checking.

2018-11-30  Edward Smith-Rowland  <3dw4rd@verizon.net>

Implement P0457R2 String Prefix and Suffix Checking.
* include/bits/basic_string.h: Add starts_with, ends_with members.
* include/std/string_view: Ditto.
* testsuite/21_strings/basic_string/operations/starts_with/
char/1.cc: New test.
* testsuite/21_strings/basic_string/operations/starts_with/
wchar_t/1.cc: New test.
* testsuite/21_strings/basic_string/operations/ends_with/
char/1.cc: New test.
* testsuite/21_strings/basic_string/operations/ends_with/
wchar_t/1.cc: New test.
* testsuite/21_strings/basic_string_view/operations/starts_with/
char/1.cc: New test.
* testsuite/21_strings/basic_string_view/operations/starts_with/
wchar_t/1.cc: New test.
* testsuite/21_strings/basic_string_view/operations/ends_with/
char/1.cc: New test.
* testsuite/21_strings/basic_string_view/operations/ends_with/
wchar_t/1.cc: New test.

From-SVN: r266674
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_string.h
libstdc++-v3/include/std/string_view
libstdc++-v3/testsuite/21_strings/basic_string/operations/ends_with/char/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/21_strings/basic_string/operations/ends_with/wchar_t/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/21_strings/basic_string/operations/starts_with/char/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/21_strings/basic_string/operations/starts_with/wchar_t/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/21_strings/basic_string_view/operations/ends_with/char/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/21_strings/basic_string_view/operations/ends_with/wchar_t/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/21_strings/basic_string_view/operations/starts_with/char/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/21_strings/basic_string_view/operations/starts_with/wchar_t/1.cc [new file with mode: 0644]