From da07ed4754fa7b1e4f40c768e6653a066d1787f3 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 27 Nov 2008 12:26:24 +0000 Subject: Clarified that 'character' means 'byte'. --- doc/ScintillaDoc.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 7244bb993..ee5d152b4 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -277,7 +277,7 @@

Text retrieval and modification

-

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">SCI_SETSTYLEBITS up to a maximum of 7 bits. The remaining bits can be used for indicators.

+

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 nLen characters, the last character is numbered nLen-1. @@ -1004,7 +1007,7 @@ struct TextToFind {

SCI_GETTEXTLENGTH
SCI_GETLENGTH
- Both these messages return the length of the document in characters.

+ Both these messages return the length of the document in bytes.

SCI_GETLINECOUNT
This returns the number of lines in the document. An empty document contains 1 line. A -- cgit v1.2.3