MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / EqualsIgnoreCase

Method EqualsIgnoreCase

src/base/AFStringUtils.hpp:813–820  ·  view source on GitHub ↗

@brief std::string compare ignoring case sensitively

Source from the content-addressed store, hash-verified

811
812 // @brief std::string compare ignoring case sensitively
813 static bool EqualsIgnoreCase(const std::string& str1, const std::string& str2)
814 {
815 if (str1.length() == str2.length())
816 {
817 return std::equal(str1.begin(), str1.end(), str2.begin(), no_case_compare_char);
818 }
819 return false;
820 }
821
822 // @brief Returns whether the std::string begins with the pattern passed in.
823 // @param[in] pattern The pattern to compare with.

Callers

nothing calls this directly

Calls 3

lengthMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected