diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2015-04-08 03:09:47 +0000 |
---|---|---|
committer | <> | 2015-05-05 14:37:32 +0000 |
commit | f2541bb90af059680aa7036f315f052175999355 (patch) | |
tree | a5b214744b256f07e1dc2bd7273035a7808c659f /libs/utility/test/string_ref_test2.cpp | |
parent | ed232fdd34968697a68783b3195b1da4226915b5 (diff) | |
download | boost-tarball-master.tar.gz |
Imported from /home/lorry/working-area/delta_boost-tarball/boost_1_58_0.tar.bz2.HEADboost_1_58_0master
Diffstat (limited to 'libs/utility/test/string_ref_test2.cpp')
-rw-r--r-- | libs/utility/test/string_ref_test2.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/utility/test/string_ref_test2.cpp b/libs/utility/test/string_ref_test2.cpp index 174405d02..9559c6712 100644 --- a/libs/utility/test/string_ref_test2.cpp +++ b/libs/utility/test/string_ref_test2.cpp @@ -18,7 +18,7 @@ typedef boost::string_ref string_ref; void ends_with ( const char *arg ) { - const size_t sz = strlen ( arg ); + const size_t sz = std::strlen ( arg ); string_ref sr ( arg ); string_ref sr2 ( arg ); const char *p = arg; @@ -48,7 +48,7 @@ void ends_with ( const char *arg ) { } void starts_with ( const char *arg ) { - const size_t sz = strlen ( arg ); + const size_t sz = std::strlen ( arg ); string_ref sr ( arg ); string_ref sr2 ( arg ); const char *p = arg + std::strlen ( arg ) - 1; @@ -159,7 +159,7 @@ void find ( const char *arg ) { // Find everything at the end sr1 = arg; - p = arg + strlen ( arg ) - 1; + p = arg + std::strlen ( arg ) - 1; while ( !sr1.empty ()) { string_ref::size_type pos = sr1.rfind(*p); BOOST_CHECK ( pos == sr1.size () - 1 ); @@ -180,7 +180,7 @@ void find ( const char *arg ) { // Find everything at the end sr1 = arg; - p = arg + strlen ( arg ) - 1; + p = arg + std::strlen ( arg ) - 1; while ( !sr1.empty ()) { string_ref::size_type pos = sr1.find_last_of(*p); BOOST_CHECK ( pos == sr1.size () - 1 ); |