diff options
author | nyamatongwe <devnull@localhost> | 2011-05-13 10:27:30 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-05-13 10:27:30 +1000 |
commit | 15bfd9c723b0753dcf2b6e85f6b9be351af00378 (patch) | |
tree | 14707aa7cea073ecb62849d09697a02ca38e9375 /src/Document.h | |
parent | 3166c901c7d071f2083a1a29ca710171fd7cf699 (diff) | |
download | scintilla-mirror-15bfd9c723b0753dcf2b6e85f6b9be351af00378.tar.gz |
Break measurement of text into reasonable sized segments similar
to drawing. Drawing will now always be broken up at a character
boundary even when there is a large number of alphabetic characters.
Fixes bug #3165743.
Diffstat (limited to 'src/Document.h')
-rw-r--r-- | src/Document.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Document.h b/src/Document.h index 274aa0baa..7858db727 100644 --- a/src/Document.h +++ b/src/Document.h @@ -275,6 +275,7 @@ public: bool NextCharacter(int &pos, int moveDir); // Returns true if pos changed int SCI_METHOD CodePage() const; bool SCI_METHOD IsDBCSLeadByte(char ch) const; + int SafeSegment(const char *text, int length, int lengthSegment); // Gateways to modifying document void ModifiedAt(int pos); |