When manipulating standard strings, it is recommended to use their methods, rather than accessing the underlying char array representation with
low-level C methods. The string methods are clearer in their purpose, less error-prone, and will sometimes be more performant.
void func(std::string const& param1, std::string const& param2) {
int size = strlen(param1.data()); // Noncompliant
bool same = (strcmp(param1.c_str(), param2.c_str()) == 0); // Noncompliant
}