fix string_icase_map.(#10)

This commit is contained in:
asdlokj1qpi23
2024-03-12 10:36:33 +08:00
parent 185e3893bf
commit b90e63b506

View File

@@ -5,11 +5,9 @@
#include <map>
#include <string.h>
struct strICaseComp
{
bool operator() (const std::string &lhs, const std::string &rhs) const
{
return strcasecmp(lhs.c_str(), rhs.c_str());
struct strICaseComp {
bool operator()(const std::string &lhs, const std::string &rhs) const {
return strcasecmp(lhs.c_str(), rhs.c_str()) > 0;
}
};