diff options
Diffstat (limited to 'src/util/string.h')
-rw-r--r-- | src/util/string.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/util/string.h b/src/util/string.h new file mode 100644 index 0000000000..8fa8476e0d --- /dev/null +++ b/src/util/string.h @@ -0,0 +1,16 @@ +#ifndef MIXXX_STRING_H +#define MIXXX_STRING_H + + +#include <QString> + + +// The default comparison of strings for sorting. +inline +int compareLocalAwareCaseInsensitive( + const QString& first, const QString& second) { + return QString::localeAwareCompare(first.toLower(), second.toLower()); +} + + +#endif // MIXXX_STRING_H |