diff options
Diffstat (limited to 'engines/wintermute/utils')
-rw-r--r-- | engines/wintermute/utils/string_util.cpp | 10 | ||||
-rw-r--r-- | engines/wintermute/utils/string_util.h | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/engines/wintermute/utils/string_util.cpp b/engines/wintermute/utils/string_util.cpp index 92f6fb202b..3e71a939d2 100644 --- a/engines/wintermute/utils/string_util.cpp +++ b/engines/wintermute/utils/string_util.cpp @@ -281,6 +281,16 @@ int StringUtil::indexOf(const WideString &str, const WideString &toFind, size_t }
}
+Common::String StringUtil::encodeSetting(const Common::String &str) {
+ if (str.contains('=')) {
+ error("Setting contains '='");
+ }
+ return str;
+}
+
+Common::String StringUtil::decodeSetting(const Common::String &str) {
+ return str;
+}
//////////////////////////////////////////////////////////////////////////
AnsiString StringUtil::toString(int val) {
diff --git a/engines/wintermute/utils/string_util.h b/engines/wintermute/utils/string_util.h index 80b4ab5911..6a10b63ac4 100644 --- a/engines/wintermute/utils/string_util.h +++ b/engines/wintermute/utils/string_util.h @@ -48,6 +48,9 @@ public: static bool isUtf8BOM(const byte *buffer, uint32 bufferSize);
static int indexOf(const WideString &str, const WideString &toFind, size_t startFrom);
+ static Common::String encodeSetting(const Common::String &str);
+ static Common::String decodeSetting(const Common::String &str);
+
static AnsiString toString(int val);
};
|