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

Method Equals

src/base/AFStringUtils.hpp:800–810  ·  view source on GitHub ↗

std::string compare @param case_sensitive true If we compare the std::string with case sensitively

Source from the content-addressed store, hash-verified

798 // std::string compare
799 // @param case_sensitive true If we compare the std::string with case sensitively
800 static bool Equals(const std::string& str1, const std::string& str2, bool case_sensitive = true)
801 {
802 if (case_sensitive)
803 {
804 return (str1 == str2) ? true : false;
805 }
806 else
807 {
808 return EqualsIgnoreCase(str1, str2);
809 }
810 }
811
812 // @brief std::string compare ignoring case sensitively
813 static bool EqualsIgnoreCase(const std::string& str1, const std::string& str2)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected