aboutsummaryrefslogtreecommitdiff
path: root/libbutl/utility.mxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbutl/utility.mxx')
-rw-r--r--libbutl/utility.mxx20
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;
}
};