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
commit199d7ee000fcb1ce24d3f4a919dc825e6c0d2f45 (patch)
tree12c648fe19907c70867438641fa36ee550923847 /src/Document.cxx
parent47792a5650ed6c70b05ccf1c33cce015d032bd04 (diff)
downloadscintilla-mirror-199d7ee000fcb1ce24d3f4a919dc825e6c0d2f45.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;