Replace core::string implementation with std::basic_string

This commit is contained in:
sfan5
2022-12-22 23:55:35 +01:00
parent 735af8eec6
commit 07fd32da50
6 changed files with 249 additions and 764 deletions

View File

@ -37,8 +37,10 @@ void run_unit_tests() {
test_irr_array();
test_irr_string();
} catch (const std::exception &e) {
std::cerr << e.what() << std::endl;
test_fail++;
}
std::cout << std::endl;
}
int main(int argc, char *argv[])

View File

@ -36,11 +36,6 @@ static void test_basics()
// operator=
s = stringw(L"abcdef");
UASSERTSTR(s, "abcdef");
s = stringc("test");
s = s.c_str();
UASSERTSTR(s, "test");
s = s.c_str() + 1;
UASSERTSTR(s, "est");
s = L"abcdef";
UASSERTSTR(s, "abcdef");
s = static_cast<const char*>(nullptr);