Switching code to use StringView.

This commit is contained in:
Branimir Karadžić
2017-10-02 21:02:06 -07:00
parent a5f998dd8f
commit 4b4b3e74db
4 changed files with 7 additions and 13 deletions

View File

@@ -159,9 +159,9 @@ TEST_CASE("strCmpV sort", "")
TEST_CASE("strRFind", "")
{
const char* test = "test";
REQUIRE(NULL == bx::strRFind(test, 0, 's') );
REQUIRE(NULL == bx::strRFind(test, 1, 's') );
REQUIRE(&test[2] == bx::strRFind(test, INT32_MAX, 's') );
REQUIRE(NULL == bx::strRFind(bx::StringView(test, 0), 's') );
REQUIRE(NULL == bx::strRFind(bx::StringView(test, 1), 's') );
REQUIRE(&test[2] == bx::strRFind(test, 's') );
}
TEST_CASE("strFindI", "")