aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/common/string_util.h
diff options
context:
space:
mode:
authorGravatar archshift <admin@archshift.com>2014-09-07 00:49:52 -0700
committerGravatar archshift <admin@archshift.com>2014-09-08 15:41:58 -0700
commit4ed24a06191a0dbf68bd72ad0fcc8d467b37f580 (patch)
treef3a1e6b49dc193153d039c1144b3789a9e7a7bc6 /src/common/string_util.h
parent335082e74e5f015450f1ad57cb90d1f8fd4afbdb (diff)
loader.cpp: improved file extension checking, made Upper/LowerStr useful
Instead of forcibly taking the last 4 characters, it now finds the last extension separator (the period) and takes a substr of its location.
Diffstat (limited to 'src/common/string_util.h')
-rw-r--r--src/common/string_util.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/string_util.h b/src/common/string_util.h
index ba4cd363..b1118816 100644
--- a/src/common/string_util.h
+++ b/src/common/string_util.h
@@ -13,10 +13,11 @@
#include "common/common.h"
/// Make a string lowercase
-void LowerStr(char* str);
+
+std::string LowerStr(std::string str);
/// Make a string uppercase
-void UpperStr(char* str);
+std::string UpperStr(std::string str);
std::string StringFromFormat(const char* format, ...);
// Cheap!