diff options
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; | 
