Compares two C strings. Returns true iff they have the same content. Unlike strcmp(), this function can handle NULL argument(s). A NULL C string is considered different to any non-NULL C string, including the empty string.
| 2396 | // C string is considered different to any non-NULL C string, |
| 2397 | // including the empty string. |
| 2398 | bool String::CStringEquals(const char * lhs, const char * rhs) { |
| 2399 | if (lhs == nullptr) return rhs == nullptr; |
| 2400 | |
| 2401 | if (rhs == nullptr) return false; |
| 2402 | |
| 2403 | return strcmp(lhs, rhs) == 0; |
| 2404 | } |
| 2405 | |
| 2406 | #if GTEST_HAS_STD_WSTRING |
| 2407 |
nothing calls this directly
no outgoing calls
no test coverage detected