aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2020-06-24 15:00:50 +1000
committerNeil <nyamatongwe@gmail.com>2020-06-24 15:00:50 +1000
commit69d678787645b2dd7d0cd40db4aa5c538ab13f9b (patch)
tree2058ecc0057a30473b082e2cd08a5f766e4eba79 /src
parentb047c81396af14e5497d969b37b1df9d67d09d17 (diff)
downloadscintilla-mirror-69d678787645b2dd7d0cd40db4aa5c538ab13f9b.tar.gz
Converting between UTF-8 and current encoding.
Allows platform-independent code to be written just to handle Unicode.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.h3
1 files changed, 3 insertions, 0 deletions
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);