diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2017-08-10 15:27:10 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-10 19:50:08 +0000 |
commit | a12812924fc844823025fa383cc3ec8c1d1e2d4f (patch) | |
tree | cb066bac0fffa5e9019ffc047838bcdd6a0c376b /core/fxcrt/fx_basic_utf.cpp | |
parent | 00d2ad12fa9d37581fd12d2ea5ea702c9e2e2e16 (diff) | |
download | pdfium-a12812924fc844823025fa383cc3ec8c1d1e2d4f.tar.xz |
Rename CFX_UTF8Decoder::AppendChar to AppendCodePoint.
Change-Id: Iec5523492eac3910f5ed105370e9092fd992b1b9
Reviewed-on: https://pdfium-review.googlesource.com/10471
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_basic_utf.cpp')
-rw-r--r-- | core/fxcrt/fx_basic_utf.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fxcrt/fx_basic_utf.cpp b/core/fxcrt/fx_basic_utf.cpp index fcfd5934e4..084553b671 100644 --- a/core/fxcrt/fx_basic_utf.cpp +++ b/core/fxcrt/fx_basic_utf.cpp @@ -11,8 +11,8 @@ void CFX_UTF8Decoder::Clear() { m_PendingBytes = 0; } -void CFX_UTF8Decoder::AppendChar(uint32_t ch) { - m_Buffer.AppendChar((wchar_t)ch); +void CFX_UTF8Decoder::AppendCodePoint(uint32_t ch) { + m_Buffer.AppendChar(static_cast<wchar_t>(ch)); } void CFX_UTF8Decoder::Input(uint8_t byte) { @@ -26,7 +26,7 @@ void CFX_UTF8Decoder::Input(uint8_t byte) { m_PendingBytes--; m_PendingChar |= (byte & 0x3f) << (m_PendingBytes * 6); if (m_PendingBytes == 0) { - AppendChar(m_PendingChar); + AppendCodePoint(m_PendingChar); } } else if (byte < 0xe0) { m_PendingBytes = 1; |