From 8f14a22e5bbb71d90577b35a09ba8ffae04bfe9c Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 28 Sep 2019 17:58:00 +0300 Subject: Rename casecmp() function and case_compare_[c_]string structs to icasecmp() and icase_compare_[c_]string --- libbutl/utility.ixx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libbutl/utility.ixx') diff --git a/libbutl/utility.ixx b/libbutl/utility.ixx index 8f37242..d8a5ee8 100644 --- a/libbutl/utility.ixx +++ b/libbutl/utility.ixx @@ -84,7 +84,7 @@ namespace butl } inline int - casecmp (char l, char r) + icasecmp (char l, char r) { l = lcase (l); r = lcase (r); @@ -92,7 +92,7 @@ namespace butl } inline int - casecmp (const char* l, const char* r, std::size_t n) + icasecmp (const char* l, const char* r, std::size_t n) { #ifndef _WIN32 return n == std::string::npos ? strcasecmp (l, r) : strncasecmp (l, r, n); @@ -102,15 +102,15 @@ namespace butl } inline int - casecmp (const std::string& l, const std::string& r, std::size_t n) + icasecmp (const std::string& l, const std::string& r, std::size_t n) { - return casecmp (l.c_str (), r.c_str (), n); + return icasecmp (l.c_str (), r.c_str (), n); } inline int - casecmp (const std::string& l, const char* r, std::size_t n) + icasecmp (const std::string& l, const char* r, std::size_t n) { - return casecmp (l.c_str (), r, n); + return icasecmp (l.c_str (), r, n); } inline bool -- cgit v1.1