aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/system.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/common/system.h b/common/system.h
index 92fdfc5e1a..77bdcd0815 100644
--- a/common/system.h
+++ b/common/system.h
@@ -1493,7 +1493,21 @@ public:
//@}
- protected:
+protected:
+
+ /**
+ * This allows derived classes to implement encoding conversion using platform
+ * specific API.
+ * This method shouldn't be called directly. Use Common::Encoding instead.
+ *
+ * @param to Encoding to convert the string to
+ * @param from Encoding to convert the string from
+ * @param string The string that should be converted
+ * @param length Size of the string in bytes
+ *
+ * @return Converted string, which must be freed, or nullptr if the conversion
+ * isn't possible.
+ */
virtual char *convertEncoding(const char *to, const char *from, const char *string, size_t length) { return nullptr; }
};