aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-05-13 10:27:30 +1000
committernyamatongwe <devnull@localhost>2011-05-13 10:27:30 +1000
commit15bfd9c723b0753dcf2b6e85f6b9be351af00378 (patch)
tree14707aa7cea073ecb62849d09697a02ca38e9375 /src/Document.h
parent3166c901c7d071f2083a1a29ca710171fd7cf699 (diff)
downloadscintilla-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.h1
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);