aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/StringUtil.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-04 17:43:01 +0100
committerMax Kellermann <max@duempel.org>2014-12-04 17:43:01 +0100
commit4e2f4e2091103ea571602c444642ff04c2bf5a2f (patch)
treec9673af59272ac77d3ee594e79e7bacb462b1f2c /src/util/StringUtil.hxx
parente69bef3ce389967b8239648e4b9eaec42217bc95 (diff)
downloadmpd-4e2f4e2091103ea571602c444642ff04c2bf5a2f.tar.gz
mpd-4e2f4e2091103ea571602c444642ff04c2bf5a2f.tar.xz
mpd-4e2f4e2091103ea571602c444642ff04c2bf5a2f.zip
util/StringUtil: add ToUpperASCII()
Replaces g_ascii_strup() and allows building the Vorbis encoder without GLib.
Diffstat (limited to 'src/util/StringUtil.hxx')
-rw-r--r--src/util/StringUtil.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/StringUtil.hxx b/src/util/StringUtil.hxx
index 9beda5441..77fe1be18 100644
--- a/src/util/StringUtil.hxx
+++ b/src/util/StringUtil.hxx
@@ -114,4 +114,12 @@ gcc_pure
bool
string_array_contains(const char *const* haystack, const char *needle);
+/**
+ * Convert the specified ASCII string (0x00..0x7f) to upper case.
+ *
+ * @param size the destination buffer size
+ */
+void
+ToUpperASCII(char *dest, const char *src, size_t size);
+
#endif