summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/stringutils.h')
-rw-r--r--src/utils/stringutils.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/utils/stringutils.h b/src/utils/stringutils.h
index ae105c6c..a0e766fb 100644
--- a/src/utils/stringutils.h
+++ b/src/utils/stringutils.h
@@ -100,4 +100,14 @@ std::string &removeBadChars(std::string &str);
*/
std::string removeColors(std::string msg);
+/**
+ * Compares the two strings case-insensitively.
+ *
+ * @param a the first string in the comparison
+ * @param b the second string in the comparison
+ * @return 0 if the strings are equal, positive if the first is greater,
+ * negative if the second is greater
+ */
+int compareStrI(const std::string &a, const std::string &b);
+
#endif // UTILS_STRINGUTILS_H