From 1fdd0b8dc8f2895c5942b23410f11ea21dd4e3f4 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 10 Jun 2021 16:03:47 +1000 Subject: Use string_view for PositionCache methods. Replace custom hash code with standard library hash. Drop standard methods that are not needed. Restrict representations to 200 bytes. Improve documentation. --- doc/ScintillaDoc.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 300ae0208..d972c99a7 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -3861,20 +3861,22 @@ struct Sci_TextToFind { SCI_GETREPRESENTATION(const char *encodedCharacter, char *representation NUL-terminated) → int
SCI_CLEARREPRESENTATION(const char *encodedCharacter)
Any character, including those normally displayed as mnemonics may be represented by a - string inverted in a rounded rectangle.

+ Unicode string inverted in a rounded rectangle.

For example, the Ohm sign Ω U+2126 looks very similar to the Greek Omega character Ω U+03C9 so, for the UTF-8 encoding, to distinguish the Ohm sign as "U+2126 Ω" this call could be made: SCI_SETREPRESENTATION("\xe2\x84\xa6", "U+2126 \xe2\x84\xa6")

-

The encodedCharacter parameter is a NUL-terminated string of the bytes for one character in the +

The encodedCharacter parameter is a NUL-terminated string of the bytes for one character in the current encoding. This can not be used to set a representation for multiple-character strings.

+

The representation parameter is a NUL-terminated UTF-8 string with a maximum length of 200 bytes.

+

One exception to the single character restriction is that the two character sequence "\r\n" (Carriage Return + Line Feed) can have a representation that is visible in line end viewing (SCI_SETVIEWEOL) mode. If there is no representation for "\r\n" then the individual '\r' and '\n' representations will be seen.

-

The NUL (0) character is a special case since the encodedCharacter parameter is NUL terminated, the NUL +

The NUL (0) character is a special case since the encodedCharacter parameter is NUL terminated, the NUL character is specified as an empty string.

SCI_CLEARALLREPRESENTATIONS
-- cgit v1.2.3