aboutsummaryrefslogtreecommitdiff
path: root/src/internal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal.cpp')
-rw-r--r--src/internal.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/internal.cpp b/src/internal.cpp
index aa27192a..4bec1bf9 100644
--- a/src/internal.cpp
+++ b/src/internal.cpp
@@ -107,6 +107,16 @@ bool ci_equal(const char *a, const char *b) noexcept {
// ---------------------------------------------------------------------------
+bool ci_less(const std::string &a, const std::string &b) noexcept {
+#ifdef _MSC_VER
+ return _stricmp(a.c_str(), b.c_str()) < 0;
+#else
+ return strcasecmp(a.c_str(), b.c_str()) < 0;
+#endif
+}
+
+// ---------------------------------------------------------------------------
+
/**
* Convert to lower case.
*/