From 36b586e7dfc2b782f89ff9e73e1a48ccd94af033 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 10 Oct 2007 11:30:14 +0000 Subject: Detect and handle invalid byte sequences in UTF-8 mode by displaying each individual invalid byte as a hex blob. --- src/Document.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Document.h') diff --git a/src/Document.h b/src/Document.h index 9143ec6e4..a36c4aafe 100644 --- a/src/Document.h +++ b/src/Document.h @@ -138,6 +138,7 @@ public: int ClampPositionIntoDocument(int pos); bool IsCrLf(int pos); int LenChar(int pos); + bool InGoodUTF8(int pos, int &start, int &end); int MovePositionOutsideChar(int pos, int moveDir, bool checkLineEnd=true); // Gateways to modifying document -- cgit v1.2.3