X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/111d99489d509bc96819877b88596474f3253859..69659fd770f615210efac4b4fa741b3ad6223616:/src/common/stringops.cpp diff --git a/src/common/stringops.cpp b/src/common/stringops.cpp index 66a461a6bb..2050048062 100644 --- a/src/common/stringops.cpp +++ b/src/common/stringops.cpp @@ -190,13 +190,14 @@ bool wxStringOperationsUtf8::IsValidUtf8LeadByte(unsigned char c) #endif -wxStringOperationsUtf8::Utf8CharBuffer -wxStringOperationsUtf8::EncodeChar(const wxUniChar& ch) +// NB: this is in this file and not unichar.cpp to keep all UTF-8 encoding +// code in single place +wxUniChar::Utf8CharBuffer wxUniChar::AsUTF8() const { Utf8CharBuffer buf; char *out = buf.data; - wxUniChar::value_type code = ch.GetValue(); + value_type code = GetValue(); // Char. number range | UTF-8 octet sequence // (hexadecimal) | (binary)