[Refactor]Merged string_value into string_ref (#15925)

This commit is contained in:
ZhaoChangle
2023-01-22 16:39:23 +08:00
committed by GitHub
parent b9872ceb98
commit 199d7d3be8
133 changed files with 1485 additions and 1607 deletions

View File

@ -30,7 +30,7 @@ void validate_string(const std::string& std_str, const StringBuffer& str) {
EXPECT_EQ((int)std_str.size(), str.size());
if (std_str.size() > 0) {
EXPECT_EQ(strncmp(std_str.c_str(), str.str().ptr, std_str.size()), 0);
EXPECT_EQ(strncmp(std_str.c_str(), str.str().data, std_str.size()), 0);
}
}