From 69d678787645b2dd7d0cd40db4aa5c538ab13f9b Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 24 Jun 2020 15:00:50 +1000 Subject: Converting between UTF-8 and current encoding. Allows platform-independent code to be written just to handle Unicode. --- src/Editor.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/Editor.h b/src/Editor.h index 4d01cb16a..60742b403 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -570,6 +570,9 @@ protected: // ScintillaBase subclass needs access to much of Editor int CodePage() const noexcept; virtual bool ValidCodePage(int /* codePage */) const { return true; } + virtual std::string UTF8FromEncoded(std::string_view encoded) const = 0; + virtual std::string EncodedFromUTF8(std::string_view utf8) const = 0; + Sci::Line WrapCount(Sci::Line line); void AddStyledText(const char *buffer, Sci::Position appendLength); -- cgit v1.2.3