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.
| 2358 | // C string is considered different to any non-NULL C string, |
| 2359 | // including the empty string. |
| 2360 | bool String::CStringEquals(const char * lhs, const char * rhs) { |
| 2361 | if ( lhs == NULL ) return rhs == NULL; |
| 2362 | |
| 2363 | if ( rhs == NULL ) return false; |
| 2364 | |
| 2365 | return strcmp(lhs, rhs) == 0; |
| 2366 | } |
| 2367 | |
| 2368 | #if GTEST_HAS_STD_WSTRING || GTEST_HAS_GLOBAL_WSTRING |
| 2369 |
nothing calls this directly
no outgoing calls
no test coverage detected