| 1 | /* |
| 2 | * IXStrCaseCompare.h |
| 3 | * Author: Benjamin Sergeant |
| 4 | * Copyright (c) 2020 Machine Zone. All rights reserved. |
| 5 | */ |
| 6 | |
| 7 | #pragma once |
| 8 | |
| 9 | #include <string> |
| 10 | |
| 11 | namespace ix |
| 12 | { |
| 13 | struct CaseInsensitiveLess |
| 14 | { |
| 15 | // Case Insensitive compare_less binary function |
| 16 | struct NocaseCompare |
| 17 | { |
| 18 | bool operator()(const unsigned char& c1, const unsigned char& c2) const; |
| 19 | }; |
| 20 | |
| 21 | static bool cmp(const std::string& s1, const std::string& s2); |
| 22 | |
| 23 | bool operator()(const std::string& s1, const std::string& s2) const; |
| 24 | }; |
| 25 | } // namespace ix |
| 26 | |