summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/utils.h
diff options
context:
space:
mode:
authorNils Philippsen <nils@tiptoe.de>2013-12-10 21:29:24 +0100
committerNils Philippsen <nils@tiptoe.de>2013-12-10 23:07:47 +0100
commit96947e2f3a74e5f738c763db7dfa42b1269a3903 (patch)
treef967f21b3d1b5b0b3e0e923a1b3e4794122457be /libs/ardour/ardour/utils.h
parente5ae775b42ea98587603ee273ca23394a113d44c (diff)
add cmp_nocase_utf8()
This is like cmp_nocase(), only that it doesn't use toupper(), tolower() and therefore is agnostic of the current locale, and attempts to compare strings in a UTF8-aware way (or falls back to ASCII if one of the strings isn't UTF8-encoded).
Diffstat (limited to 'libs/ardour/ardour/utils.h')
-rw-r--r--libs/ardour/ardour/utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/ardour/ardour/utils.h b/libs/ardour/ardour/utils.h
index bf91d4d57e..4bf97fd2e5 100644
--- a/libs/ardour/ardour/utils.h
+++ b/libs/ardour/ardour/utils.h
@@ -57,6 +57,7 @@ static inline float f_max(float x, float a) {
std::string bump_name_once(const std::string& s, char delimiter);
int cmp_nocase (const std::string& s, const std::string& s2);
+int cmp_nocase_utf8 (const std::string& s1, const std::string& s2);
int touch_file(std::string path);