]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/unichar.h
Map illegal UTF-8 sequences to a range in Unicode's private use area as
[wxWidgets.git] / include / wx / unichar.h
index 95626697109934d715ed7205a421619fe78d2354..f2bc4b0e48708ea387580d3ee5d321fd6fcd6a5d 100644 (file)
@@ -237,19 +237,10 @@ public:
 #endif
 
 private:
-    wxUniChar UniChar() const
-    {
 #if wxUSE_UNICODE_UTF8
-        return DecodeChar(m_pos);
+    wxUniChar UniChar() const;
 #else
-        return *m_pos;
-#endif
-    }
-
-#if wxUSE_UNICODE_UTF8
-    // FIXME-UTF8: move this to a separate 'string operations' class
-    static wxUniChar DecodeChar(wxStringImpl::const_iterator i);
-    friend class WXDLLIMPEXP_BASE wxString;
+    wxUniChar UniChar() const { return *m_pos; }
 #endif
 
     friend class WXDLLIMPEXP_BASE wxUniChar;