Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dosbox-staging/dosbox-staging.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkcgen <kcgen@users.noreply.github.com>2022-10-02 23:00:55 +0300
committerkcgen <1557255+kcgen@users.noreply.github.com>2022-10-07 01:59:35 +0300
commitdda2be5068be12c84742e74accc71f272a8f48b4 (patch)
treedbb8671efbf1835d0c70d71afcfff243c479e8fa /include
parent4dd7154b23936ebbcf401f606cd17e8d1e468520 (diff)
Add character and string case-insensitive comparison functions
Diffstat (limited to 'include')
-rw-r--r--include/string_utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/string_utils.h b/include/string_utils.h
index a56ffba1b..e4e7b25cb 100644
--- a/include/string_utils.h
+++ b/include/string_utils.h
@@ -154,6 +154,10 @@ inline bool is_empty(const char *str) noexcept
return str[0] == '\0';
}
+// case-insensitive comparisons
+bool char_iequals(const char a, const char b);
+bool string_iequals(const std::string &a, const std::string &b);
+
char *strip_word(char *&cmd);
std::string replace(const std::string &str, char old_char, char new_char) noexcept;