summaryrefslogtreecommitdiff
path: root/core/fxcrt/cfx_widetextbuf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/cfx_widetextbuf.cpp')
-rw-r--r--core/fxcrt/cfx_widetextbuf.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/fxcrt/cfx_widetextbuf.cpp b/core/fxcrt/cfx_widetextbuf.cpp
index 246124b95f..81b5fd4b05 100644
--- a/core/fxcrt/cfx_widetextbuf.cpp
+++ b/core/fxcrt/cfx_widetextbuf.cpp
@@ -6,6 +6,10 @@
#include "core/fxcrt/cfx_widetextbuf.h"
+FX_STRSIZE CFX_WideTextBuf::GetLength() const {
+ return m_DataSize / sizeof(wchar_t);
+}
+
void CFX_WideTextBuf::AppendChar(wchar_t ch) {
ExpandBuf(sizeof(wchar_t));
*(wchar_t*)(m_pBuffer.get() + m_DataSize) = ch;