Merge pull request #13068 from mitaclaw/redundant-case-insensitive

IniFile: Migrate `Common::CaseInsensitiveLess` to StringUtil
This commit is contained in:
JMC47
2024-09-26 18:24:36 -04:00
committed by GitHub
4 changed files with 19 additions and 30 deletions

View File

@ -313,5 +313,13 @@ std::string GetEscapedHtml(std::string html);
void ToLower(std::string* str);
void ToUpper(std::string* str);
bool CaseInsensitiveEquals(std::string_view a, std::string_view b);
// 'std::less'-like comparison function object type for case-insensitive strings.
struct CaseInsensitiveLess
{
using is_transparent = void; // Allow heterogenous lookup.
bool operator()(std::string_view a, std::string_view b) const;
};
std::string BytesToHexString(std::span<const u8> bytes);
} // namespace Common