summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/fxcrt/widestring.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/fxcrt/widestring.h b/core/fxcrt/widestring.h
index f48c32379a..14621ec1a1 100644
--- a/core/fxcrt/widestring.h
+++ b/core/fxcrt/widestring.h
@@ -182,6 +182,10 @@ class WideString {
size_t Remove(wchar_t ch);
ByteString UTF8Encode() const;
+
+ // This method will add \0\0 to the end of the string to represent the
+ // wide string terminator. These values are in the string, not just the data,
+ // so GetLength() will include them.
ByteString UTF16LE_Encode() const;
protected: