From db5ad2e09a6b38e841463dbe7eb076492b62c948 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 18 Aug 2009 15:58:17 +0200 Subject: Mad funktioniert jetzt unter Windows --- src/Core/ConfigEntry.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/Core/ConfigEntry.h') diff --git a/src/Core/ConfigEntry.h b/src/Core/ConfigEntry.h index c3bcd1d..fcd8dd4 100644 --- a/src/Core/ConfigEntry.h +++ b/src/Core/ConfigEntry.h @@ -20,15 +20,19 @@ #ifndef MAD_CORE_CONFIGENTRY_H_ #define MAD_CORE_CONFIGENTRY_H_ +#include "export.h" + #include #include #include #include +#include + namespace Mad { namespace Core { -class ConfigEntry { +class MAD_CORE_EXPORT ConfigEntry { public: class String : public std::string { public: @@ -36,11 +40,11 @@ class ConfigEntry { String(const std::string &str) : std::string(str) {} bool matches(const std::string &str) const { - return (strcasecmp(c_str(), str.c_str()) == 0); + return (boost::algorithm::to_lower_copy(static_cast(*this)) == boost::algorithm::to_lower_copy(str)); } }; - class Entry { + class MAD_CORE_EXPORT Entry { private: String key; std::vector value; -- cgit v1.2.3