aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2013-07-22 19:36:55 +1000
committerNeil <nyamatongwe@gmail.com>2013-07-22 19:36:55 +1000
commit5cbf336f95db427027a72699be6f5034762515aa (patch)
treefb8e4f0eccb49363752995c85b5b9217f340282b /src/Document.cxx
parent79bd92adfc0ee27029fed81efd03fb5784c60f73 (diff)
downloadscintilla-mirror-5cbf336f95db427027a72699be6f5034762515aa.tar.gz
Added the character representation feature.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r--src/Document.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index 98574fe13..578adfefd 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -854,6 +854,15 @@ int Document::SafeSegment(const char *text, int length, int lengthSegment) const
return lastEncodingAllowedBreak;
}
+EncodingFamily Document::CodePageFamily() const {
+ if (SC_CP_UTF8 == dbcsCodePage)
+ return efUnicode;
+ else if (dbcsCodePage)
+ return efDBCS;
+ else
+ return efEightBit;
+}
+
void Document::ModifiedAt(int pos) {
if (endStyled > pos)
endStyled = pos;