From 5cbf336f95db427027a72699be6f5034762515aa Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 22 Jul 2013 19:36:55 +1000 Subject: Added the character representation feature. --- src/Document.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Document.h') diff --git a/src/Document.h b/src/Document.h index 5147875b1..d02025cb5 100644 --- a/src/Document.h +++ b/src/Document.h @@ -19,6 +19,8 @@ namespace Scintilla { typedef int Position; const Position invalidPosition = -1; +enum EncodingFamily { efEightBit, efUnicode, efDBCS }; + /** * The range class represents a range of text in a document. * The two values are not sorted as one end may be more significant than the other @@ -266,6 +268,7 @@ public: int SCI_METHOD CodePage() const; bool SCI_METHOD IsDBCSLeadByte(char ch) const; int SafeSegment(const char *text, int length, int lengthSegment) const; + EncodingFamily CodePageFamily() const; // Gateways to modifying document void ModifiedAt(int pos); -- cgit v1.2.3