aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/encoding.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/common/encoding.h b/common/encoding.h
index 309e0f8a37..70ba2bfe44 100644
--- a/common/encoding.h
+++ b/common/encoding.h
@@ -222,6 +222,16 @@ class Encoding {
*/
static void deinitIconv(iconv_t iconvHandle);
+ /**
+ * If the string is "utf-16" or "utf-32", this adds either BE for big endian
+ * or LE for little endian to the end of the string. Otherwise this does
+ * nothing.
+ *
+ * @param str String to append the endianness to
+ *
+ * @return The same string with appended endianness if it is needed, or
+ * the same string.
+ */
static String addUtfEndianness(const String &str);
};