diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-09-28 17:58:00 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-09-28 17:58:47 +0300 |
commit | 8f14a22e5bbb71d90577b35a09ba8ffae04bfe9c (patch) | |
tree | 96bce706024b3ec200170d5e090ac41615887606 /libbutl/utility.mxx | |
parent | f488e6473a7d0562c0e2df6d107a36de4d30d9da (diff) |
Rename casecmp() function and case_compare_[c_]string structs to icasecmp() and icase_compare_[c_]string
Diffstat (limited to 'libbutl/utility.mxx')
-rw-r--r-- | libbutl/utility.mxx | 20 |
1 files changed, 10 insertions, 10 deletions
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; } }; |