Compares two wide C strings. Returns true iff they have the same content. Unlike wcscmp(), this function can handle NULL argument(s). A NULL C string is considered different to any non-NULL C string, including the empty string.
| 3352 | // C string is considered different to any non-NULL C string, |
| 3353 | // including the empty string. |
| 3354 | bool String::WideCStringEquals(const wchar_t * lhs, const wchar_t * rhs) { |
| 3355 | if (lhs == nullptr) return rhs == nullptr; |
| 3356 | |
| 3357 | if (rhs == nullptr) return false; |
| 3358 | |
| 3359 | return wcscmp(lhs, rhs) == 0; |
| 3360 | } |
| 3361 | |
| 3362 | // Helper function for *_STREQ on wide strings. |
| 3363 | AssertionResult CmpHelperSTREQ(const char* lhs_expression, |
nothing calls this directly
no outgoing calls
no test coverage detected