diff options
author | bunnei <bunneidev@gmail.com> | 2014-09-11 00:04:36 -0400 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-09-11 00:04:36 -0400 |
commit | 532a9e80a0bd242d2937335063b719130405d6bc (patch) | |
tree | 84fe1f054b62edc488a7a9e80eb8f79b2dd05cd0 /src/common/string_util.h | |
parent | d79fe3ebaadbc19e8ffe5075bad51a9735aafb38 (diff) | |
parent | 8fe5f2e2fe33ccde39bc79898052a8f679222964 (diff) |
Merge pull request #99 from archshift/ext-check
loader.cpp: improved file extension checking, made Upper/LowerStr useful, moved string_util into Common namespace
Diffstat (limited to 'src/common/string_util.h')
-rw-r--r-- | src/common/string_util.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/common/string_util.h b/src/common/string_util.h index ba4cd363e6..16ce39bc1d 100644 --- a/src/common/string_util.h +++ b/src/common/string_util.h @@ -12,11 +12,13 @@ #include "common/common.h" +namespace Common { + /// Make a string lowercase -void LowerStr(char* str); +std::string ToLower(std::string str); /// Make a string uppercase -void UpperStr(char* str); +std::string ToUpper(std::string str); std::string StringFromFormat(const char* format, ...); // Cheap! @@ -111,3 +113,5 @@ inline std::string UTF8ToTStr(const std::string& str) #endif #endif + +} |