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.mxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'libbutl/utility.mxx') diff --git a/libbutl/utility.mxx b/libbutl/utility.mxx index 03fb89e..11aa013 100644 --- a/libbutl/utility.mxx +++ b/libbutl/utility.mxx @@ -108,31 +108,31 @@ LIBBUTL_MODEXPORT namespace butl // The optional size argument specifies the maximum number of characters // to compare. // - int casecmp (char, char); + int icasecmp (char, char); - int casecmp (const std::string&, const std::string&, - std::size_t = std::string::npos); + int icasecmp (const std::string&, const std::string&, + std::size_t = std::string::npos); - int casecmp (const std::string&, const char*, - std::size_t = std::string::npos); + int icasecmp (const std::string&, const char*, + std::size_t = std::string::npos); - int casecmp (const char*, const char*, std::size_t = std::string::npos); + int icasecmp (const char*, const char*, std::size_t = std::string::npos); // Case-insensitive key comparators (i.e., to be used in sets, maps, etc). // - struct case_compare_string + struct icase_compare_string { bool operator() (const std::string& x, const std::string& y) const { - return casecmp (x, y) < 0; + return icasecmp (x, y) < 0; } }; - struct case_compare_c_string + struct icase_compare_c_string { bool operator() (const char* x, const char* y) const { - return casecmp (x, y) < 0; + return icasecmp (x, y) < 0; } }; -- cgit v1.1