util/StringUtil: add ToUpperASCII()

Replaces g_ascii_strup() and allows building the Vorbis encoder
without GLib.
This commit is contained in:
Max Kellermann
2014-12-04 17:43:01 +01:00
parent e69bef3ce3
commit 4e2f4e2091
4 changed files with 33 additions and 7 deletions

View File

@@ -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