Commit c22f3cf7 authored by Brad King's avatar Brad King 💬
Browse files

Merge branch 'upstream-KWSys' into update-kwsys

* upstream-KWSys:
  KWSys 2016-10-07 (dfe9b386)
parents b99bbfe8 bf28a387
...@@ -2716,17 +2716,15 @@ unsigned long SystemTools::FileLength(const std::string& filename) ...@@ -2716,17 +2716,15 @@ unsigned long SystemTools::FileLength(const std::string& filename)
return length; return length;
} }
int SystemTools::Strucmp(const char *s1, const char *s2) int SystemTools::Strucmp(const char* l, const char* r)
{ {
// lifted from Graphvis http://www.graphviz.org int lc;
while ((*s1 != '\0') int rc;
&& (tolower(*s1) == tolower(*s2))) do {
{ lc = tolower(*l++);
s1++; rc = tolower(*r++);
s2++; } while(lc == rc && lc);
} return lc - rc;
return tolower(*s1) - tolower(*s2);
} }
// return file's modified time // return file's modified time
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment