You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
571 B

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