Internals: Use std:: for mem and str functions.

This commit is contained in:
Wilson Snyder
2022-09-14 21:10:19 -04:00
parent 75fd71d7e5
commit d85b909054
38 changed files with 118 additions and 113 deletions
+2 -2
View File
@@ -150,7 +150,7 @@ double VString::parseDouble(const string& str, bool* successp) {
char* endp = strgp;
const double d = strtod(strgp, &endp);
const size_t parsed_len = endp - strgp;
if (parsed_len != strlen(strgp)) {
if (parsed_len != std::strlen(strgp)) {
if (successp) *successp = false;
}
VL_DO_DANGLING(delete[] strgp, strgp);
@@ -402,7 +402,7 @@ void VHashSha256::selfTest() {
string VName::dehash(const string& in) {
static const char VHSH[] = "__Vhsh";
static const size_t DOT_LEN = strlen("__DOT__");
static const size_t DOT_LEN = std::strlen("__DOT__");
std::string dehashed;
// Need to split 'in' into components separated by __DOT__, 'last_dot_pos'