From b90e63b5069a6090a61496e76f506c78b5df04f3 Mon Sep 17 00:00:00 2001 From: asdlokj1qpi23 Date: Tue, 12 Mar 2024 10:36:33 +0800 Subject: [PATCH] fix string_icase_map.(#10) --- src/utils/map_extra.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/utils/map_extra.h b/src/utils/map_extra.h index 71af656..583fb24 100644 --- a/src/utils/map_extra.h +++ b/src/utils/map_extra.h @@ -5,11 +5,9 @@ #include #include -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; } };