Do bulk replace of stl types.
This commit is contained in:
parent
521486be62
commit
c25a56ee19
531 changed files with 2274 additions and 2181 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
TEST_CASE(TestReadBitStream, "core")
|
||||
{
|
||||
std::vector<std::string> bytes{
|
||||
Vector<String> bytes{
|
||||
"11101101",
|
||||
"01011101",
|
||||
"00001001",
|
||||
|
|
|
@ -70,21 +70,21 @@ TEST_CASE(String_Slice, "core")
|
|||
/*
|
||||
TEST_CASE(TestStringUtils_StripSurroundingWhitepsace, "core")
|
||||
{
|
||||
std::string input = " super() ";
|
||||
std::string stripped = StringUtils::stripSurroundingWhitepsace(input);
|
||||
String input = " super() ";
|
||||
String stripped = StringUtils::stripSurroundingWhitepsace(input);
|
||||
REQUIRE(stripped == "super()");
|
||||
}
|
||||
|
||||
TEST_CASE(TestStringUtils_RemoveUpTo, "core")
|
||||
{
|
||||
std::string input = "def{filename}abc/123/456";
|
||||
std::string removed = StringUtils::removeUpTo(input, "{filename}");
|
||||
String input = "def{filename}abc/123/456";
|
||||
String removed = StringUtils::removeUpTo(input, "{filename}");
|
||||
REQUIRE(removed == "abc/123/456");
|
||||
}
|
||||
|
||||
TEST_CASE(TestStringUtils_startsWith, "core")
|
||||
{
|
||||
std::string input = " ```some triple ticks ";
|
||||
String input = " ```some triple ticks ";
|
||||
bool ignore_whitespace{false};
|
||||
auto starts_with = StringUtils::startsWith(input, "```", ignore_whitespace);
|
||||
REQUIRE(!starts_with);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue