diff options
Diffstat (limited to 'src/utils/stringutils.cpp')
-rw-r--r-- | src/utils/stringutils.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index adcedaa1..67a0d831 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -50,6 +50,12 @@ std::string &toLower(std::string &str) return str; } +std::string &toUpper(std::string &str) +{ + std::transform(str.begin(), str.end(), str.begin(), toupper); + return str; +} + unsigned int atox(const std::string &str) { unsigned int value; |