diff --git a/common/StringUtil.cpp b/common/StringUtil.cpp index b1269bf46..bba3433fb 100644 --- a/common/StringUtil.cpp +++ b/common/StringUtil.cpp @@ -126,27 +126,6 @@ bool strn0cpyt(char* dest, const char* source, uint32 size) { return (bool) (source[strlen(dest)] == 0); } -const char *MakeUpperString(const char *source) { - static char str[128]; - if (!source) - return nullptr; - MakeUpperString(source, str); - return str; -} - -void MakeUpperString(const char *source, char *target) { - if (!source || !target) { - *target=0; - return; - } - while (*source) - { - *target = toupper(*source); - target++;source++; - } - *target = 0; -} - const char *MakeLowerString(const char *source) { static char str[128]; if (!source) diff --git a/common/StringUtil.h b/common/StringUtil.h index 423201247..bbd9d43ba 100644 --- a/common/StringUtil.h +++ b/common/StringUtil.h @@ -23,19 +23,9 @@ void vStringFormat(std::string& output, const char* format, va_list args); void StringFormat(std::string& output, const char* format, ...); -////////////////////////////////////////////////////////////////////// -// -// MakeUpperString -// i : source - allocated null-terminated string -// return: pointer to static buffer with the target string -const char *MakeUpperString(const char *source); + const char *MakeLowerString(const char *source); -////////////////////////////////////////////////////////////////////// -// -// MakeUpperString -// i : source - allocated null-terminated string -// io: target - allocated buffer, at least of size strlen(source)+1 -void MakeUpperString(const char *source, char *target); + void MakeLowerString(const char *source, char *target);