aboutsummaryrefslogtreecommitdiff
path: root/libbutl/process.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-09-28 17:58:00 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-09-28 17:58:47 +0300
commit8f14a22e5bbb71d90577b35a09ba8ffae04bfe9c (patch)
tree96bce706024b3ec200170d5e090ac41615887606 /libbutl/process.cxx
parentf488e6473a7d0562c0e2df6d107a36de4d30d9da (diff)
Rename casecmp() function and case_compare_[c_]string structs to icasecmp() and icase_compare_[c_]string
Diffstat (limited to 'libbutl/process.cxx')
-rw-r--r--libbutl/process.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/libbutl/process.cxx b/libbutl/process.cxx
index 4408610..b82af3c 100644
--- a/libbutl/process.cxx
+++ b/libbutl/process.cxx
@@ -135,7 +135,7 @@ import butl.small_vector;
import std.threading;
#endif
-import butl.utility; // casecmp()
+import butl.utility; // icasecmp()
import butl.fdstream; // fdnull()
#else
#include <libbutl/utility.mxx>
@@ -945,9 +945,9 @@ namespace butl
{
const char* e (traits::find_extension (f, fn));
ext = (e == nullptr ||
- (casecmp (e, ".exe") != 0 &&
- casecmp (e, ".bat") != 0 &&
- casecmp (e, ".cmd") != 0));
+ (icasecmp (e, ".exe") != 0 &&
+ icasecmp (e, ".bat") != 0 &&
+ icasecmp (e, ".cmd") != 0));
}
process_path r (f, path (), path ()); // Make sure it is not empty.
@@ -1413,7 +1413,7 @@ namespace butl
for (; *ev != nullptr; ++ev)
{
const char* v (*ev);
- if (casecmp (cv, v, nn) == 0 && (v[nn] == '=' || v[nn] == '\0'))
+ if (icasecmp (cv, v, nn) == 0 && (v[nn] == '=' || v[nn] == '\0'))
break;
}
@@ -1443,8 +1443,8 @@ namespace butl
{
const char* p (pp.effect_string ());
const char* e (path::traits_type::find_extension (p));
- if (e != nullptr && (casecmp (e, ".bat") == 0 ||
- casecmp (e, ".cmd") == 0))
+ if (e != nullptr && (icasecmp (e, ".bat") == 0 ||
+ icasecmp (e, ".cmd") == 0))
{
batch = getenv ("COMSPEC");
@@ -1749,7 +1749,7 @@ namespace butl
{
if (auto name = static_cast<const char*> (rva_to_ptr (imp->Name)))
{
- if (casecmp (name, "msys-2.0.dll") == 0)
+ if (icasecmp (name, "msys-2.0.dll") == 0)
return true;
}
}