MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / WideCStringEquals

Method WideCStringEquals

tests/gtest/gtest-all.cc:3354–3360  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

3352// C string is considered different to any non-NULL C string,
3353// including the empty string.
3354bool 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.
3363AssertionResult CmpHelperSTREQ(const char* lhs_expression,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected