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
35 bool operator()(std::string_view lhs, std::string_view rhs)
const
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
Contains all classes and functions of the TagInfo library.
The CaseInsensitiveCharComparer struct defines a method for case-insensivive character comparison (le...
static constexpr unsigned char toLower(const unsigned char c)
bool operator()(const unsigned char lhs, const unsigned char rhs) const
The CaseInsensitiveStringComparer struct defines a method for case-insensivive string comparison (les...
bool operator()(const std::string &lhs, const std::string &rhs) const
bool operator()(std::string_view lhs, std::string_view rhs) const