Skip to content

Commit

Permalink
Change
Browse files Browse the repository at this point in the history
  • Loading branch information
madhurajayaraman committed Nov 16, 2023
1 parent 619882e commit 995322a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion third_party/googletest/src/googletest/src/gtest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2133,7 +2133,7 @@ AssertionResult CmpHelperSTRNE(const char* s1_expression,
bool String::CaseInsensitiveCStringEquals(const char* lhs, const char* rhs) {
if (lhs == nullptr) return rhs == nullptr;
if (rhs == nullptr) return false;
return posix::StrCaseCmp(lhs, rhs) == 0;
return strcasecmp(lhs, rhs) == 0;
}

// Compares two wide C strings, ignoring case. Returns true if and only if they
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2073,7 +2073,7 @@ AssertionResult CmpHelperSTRNE(const char* s1_expression,
bool String::CaseInsensitiveCStringEquals(const char * lhs, const char * rhs) {
if (lhs == nullptr) return rhs == nullptr;
if (rhs == nullptr) return false;
return posix::StrCaseCmp(lhs, rhs) == 0;
return strcasecmp(lhs, rhs) == 0;
}

// Compares two wide C strings, ignoring case. Returns true if and only if they
Expand Down

0 comments on commit 995322a

Please sign in to comment.