1 #ifndef TAG_PARSER_CASEINSENSITIVECOMPARER 2 #define TAG_PARSER_CASEINSENSITIVECOMPARER 16 static constexpr
unsigned char toLower(
const unsigned char c)
18 return (c >=
'A' && c <=
'Z') ? (c + (
'a' -
'A')) : c;
21 bool operator()(
const unsigned char lhs,
const unsigned char rhs)
const 23 return toLower(lhs) < toLower(rhs);
31 bool operator()(
const std::string &lhs,
const std::string &rhs)
const 39 #endif // TAG_PARSER_CASEINSENSITIVECOMPARER
bool operator()(const unsigned char lhs, const unsigned char rhs) const
The CaseInsensitiveStringComparer struct defines a method for case-insensivive string comparsion (les...
The CaseInsensitiveCharComparer struct defines a method for case-insensivive character comparsion (le...
Contains all classes and functions of the TagInfo library.
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
bool operator()(const std::string &lhs, const std::string &rhs) const
static constexpr unsigned char toLower(const unsigned char c)