summaryrefslogtreecommitdiffstats
path: root/src/Common/Util.h
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2008-09-13 03:59:58 +0200
committerMatthias Schiffer <matthias@gamezock.de>2008-09-13 03:59:58 +0200
commit7e87778a02f3d37865c10051a3f14038bbbcbaef (patch)
treeb1853c2e1d94d0d8d7d87b3e5db73fa618019b29 /src/Common/Util.h
parent920c506d477bd7f357e05590e8cdedf8e5e8a1b8 (diff)
downloadmad-7e87778a02f3d37865c10051a3f14038bbbcbaef.tar
mad-7e87778a02f3d37865c10051a3f14038bbbcbaef.zip
Benutze weniger Inline-Funktionen
Diffstat (limited to 'src/Common/Util.h')
-rw-r--r--src/Common/Util.h27
1 files changed, 2 insertions, 25 deletions
diff --git a/src/Common/Util.h b/src/Common/Util.h
index 19f87b9..8df5cac 100644
--- a/src/Common/Util.h
+++ b/src/Common/Util.h
@@ -21,8 +21,6 @@
#define MAD_COMMON_UTIL_H_
#include <string>
-#include <locale>
-#include <vector>
namespace Mad {
namespace Common {
@@ -32,29 +30,8 @@ class Util {
Util();
public:
- static std::string tolower(const std::string &str) {
- std::string ret;
-
- for(std::string::const_iterator c = str.begin(); c != str.end(); ++c)
- ret += std::tolower(*c);
-
- return ret;
- }
-
- static std::string trim(const std::string &str) {
- size_t beg, end;
-
- beg = str.find_first_not_of(" \t");
- end = str.find_last_not_of(" \t");
-
- if(beg == std::string::npos)
- beg = 0;
-
- if(end != std::string::npos)
- end = end-beg+1;
-
- return str.substr(beg, end);
- }
+ static std::string tolower(const std::string &str);
+ static std::string trim(const std::string &str);
};
}