📄 casecmpless.h
字号:
/** Interface for the casecmpless struct
@file casecmpless.h
*/
#ifndef CASECMPLESS_H
#define CASECMPLESS_H
/** helper for case-insensitive less<> operator for the map<> template.*/
struct casecmpless {
bool operator()(const std::string &s1, const std::string &s2) const {
#ifdef _WIN32
return stricmp(s1.c_str(), s2.c_str()) < 0;
#else
return strcasecmp(s1.c_str(), s2.c_str()) < 0;
#endif
};
};
#endif //CASECMPLESS_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -