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>
diff --git a/core/fxcrt/fx_basic.h b/core/fxcrt/fx_basic.h
index c6ffc0d..db0072a 100644
--- a/core/fxcrt/fx_basic.h
+++ b/core/fxcrt/fx_basic.h
@@ -117,7 +117,7 @@
 
   void Clear();
   void Input(uint8_t byte);
-  void AppendChar(uint32_t ch);
+  void AppendCodePoint(uint32_t ch);
   void ClearStatus() { m_PendingBytes = 0; }
   CFX_WideStringC GetResult() const { return m_Buffer.AsStringC(); }
 
diff --git a/core/fxcrt/fx_basic_utf.cpp b/core/fxcrt/fx_basic_utf.cpp
index fcfd593..084553b 100644
--- a/core/fxcrt/fx_basic_utf.cpp
+++ b/core/fxcrt/fx_basic_utf.cpp
@@ -11,8 +11,8 @@
   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 @@
     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;
diff --git a/core/fxcrt/xml/cxml_parser.cpp b/core/fxcrt/xml/cxml_parser.cpp
index 35eca52..4d9e3dc 100644
--- a/core/fxcrt/xml/cxml_parser.cpp
+++ b/core/fxcrt/xml/cxml_parser.cpp
@@ -303,7 +303,7 @@
         break;
 
       if (ch == '&') {
-        decoder.AppendChar(GetCharRef());
+        decoder.AppendCodePoint(GetCharRef());
         if (IsEOF()) {
           value = decoder.GetResult();
           return;
@@ -459,7 +459,7 @@
             iState = 1;
           } else if (ch == '&') {
             decoder.ClearStatus();
-            decoder.AppendChar(GetCharRef());
+            decoder.AppendCodePoint(GetCharRef());
           } else {
             decoder.Input(ch);
           }