From da07ed4754fa7b1e4f40c768e6653a066d1787f3 Mon Sep 17 00:00:00 2001
From: nyamatongwe Each character in a Scintilla document is followed by an associated byte of styling
+ Each byte in a Scintilla document is followed by an associated byte of styling
information. The combination of a character byte and a style byte is called a cell. Style bytes
are interpreted an index into an array of styles.
Style bytes may be split into an index and a set of indicator bits
@@ -292,6 +292,9 @@
href="#SCI_SETSTYLEBITS"> In this document, 'character' normally refers to a byte even when multi-byte characters are used.
+ Lengths measure the numbers of bytes, not the amount of characters in those bytes. Positions within the Scintilla document refer to a character or the gap before that
character. The first character in a document is 0, the second 1 and so on. If a document
contains SCI_GETTEXTLENGTHText retrieval and modification
- SCI_SETSTYLEBITS up to a maximum of 7 bits.
The remaining bits can be used for indicators.nLen characters, the last character is numbered nLen-1.
@@ -1004,7 +1007,7 @@ struct TextToFind {
SCI_GETLENGTH
- Both these messages return the length of the document in characters.
SCI_GETLINECOUNT
This returns the number of lines in the document. An empty document contains 1 line. A
--
cgit v1.2.3