diff options
| author | Neil <nyamatongwe@gmail.com> | 2013-07-22 19:36:55 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2013-07-22 19:36:55 +1000 |
| commit | 5cbf336f95db427027a72699be6f5034762515aa (patch) | |
| tree | fb8e4f0eccb49363752995c85b5b9217f340282b /src/Document.cxx | |
| parent | 79bd92adfc0ee27029fed81efd03fb5784c60f73 (diff) | |
| download | scintilla-mirror-5cbf336f95db427027a72699be6f5034762515aa.tar.gz | |
Added the character representation feature.
Diffstat (limited to 'src/Document.cxx')
| -rw-r--r-- | src/Document.cxx | 9 |
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; |
