@brief std::string compare ignoring case sensitively
| 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. |