casecmpless.h
来自「linux下简单对象应用协议的开发库」· C头文件 代码 · 共 19 行
H
19 行
/** 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 + =
减小字号Ctrl + -
显示快捷键?