diff options
| author | 2014-09-11 00:04:36 -0400 | |
|---|---|---|
| committer | 2014-09-11 00:04:36 -0400 | |
| commit | 532a9e80a0bd242d2937335063b719130405d6bc (patch) | |
| tree | 84fe1f054b62edc488a7a9e80eb8f79b2dd05cd0 /src/common/string_util.h | |
| parent | Merge pull request #103 from archshift/prune (diff) | |
| parent | Moved common_types::Rect from common to Common namespace (diff) | |
| download | yuzu-532a9e80a0bd242d2937335063b719130405d6bc.tar.gz yuzu-532a9e80a0bd242d2937335063b719130405d6bc.tar.xz yuzu-532a9e80a0bd242d2937335063b719130405d6bc.zip | |
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 ba4cd363e..16ce39bc1 100644 --- a/src/common/string_util.h +++ b/src/common/string_util.h | |||
| @@ -12,11 +12,13 @@ | |||
| 12 | 12 | ||
| 13 | #include "common/common.h" | 13 | #include "common/common.h" |
| 14 | 14 | ||
| 15 | namespace Common { | ||
| 16 | |||
| 15 | /// Make a string lowercase | 17 | /// Make a string lowercase |
| 16 | void LowerStr(char* str); | 18 | std::string ToLower(std::string str); |
| 17 | 19 | ||
| 18 | /// Make a string uppercase | 20 | /// Make a string uppercase |
| 19 | void UpperStr(char* str); | 21 | std::string ToUpper(std::string str); |
| 20 | 22 | ||
| 21 | std::string StringFromFormat(const char* format, ...); | 23 | std::string StringFromFormat(const char* format, ...); |
| 22 | // Cheap! | 24 | // Cheap! |
| @@ -111,3 +113,5 @@ inline std::string UTF8ToTStr(const std::string& str) | |||
| 111 | #endif | 113 | #endif |
| 112 | 114 | ||
| 113 | #endif | 115 | #endif |
| 116 | |||
| 117 | } | ||