diff options
| author | Neil <nyamatongwe@gmail.com> | 2021-06-10 16:03:47 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2021-06-10 16:03:47 +1000 |
| commit | 1fdd0b8dc8f2895c5942b23410f11ea21dd4e3f4 (patch) | |
| tree | 662dc6fd61303a2f40bc883ab2b574b503a6c9ee /doc/ScintillaDoc.html | |
| parent | 6d353d5ced87c554bc1b9abe194f18d585a0aeef (diff) | |
| download | scintilla-mirror-1fdd0b8dc8f2895c5942b23410f11ea21dd4e3f4.tar.gz | |
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.
Diffstat (limited to 'doc/ScintillaDoc.html')
| -rw-r--r-- | doc/ScintillaDoc.html | 8 |
1 files changed, 5 insertions, 3 deletions
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 { <b id="SCI_GETREPRESENTATION">SCI_GETREPRESENTATION(const char *encodedCharacter, char *representation NUL-terminated) → int</b><br /> <b id="SCI_CLEARREPRESENTATION">SCI_CLEARREPRESENTATION(const char *encodedCharacter)</b><br /> Any character, including those normally displayed as mnemonics may be represented by a - string inverted in a rounded rectangle.</p> + Unicode string inverted in a rounded rectangle.</p> <p>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: <code>SCI_SETREPRESENTATION("\xe2\x84\xa6", "U+2126 \xe2\x84\xa6")</code></p> - <p>The encodedCharacter parameter is a NUL-terminated string of the bytes for one character in the + <p>The <code class="parameter">encodedCharacter</code> 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. </p> + <p>The <code class="parameter">representation</code> parameter is a NUL-terminated UTF-8 string with a maximum length of 200 bytes.</p> + <p>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 (<a class="seealso" href="#SCI_SETVIEWEOL">SCI_SETVIEWEOL</a>) mode. If there is no representation for "\r\n" then the individual '\r' and '\n' representations will be seen.</p> - <p>The NUL (0) character is a special case since the encodedCharacter parameter is NUL terminated, the NUL + <p>The NUL (0) character is a special case since the <code class="parameter">encodedCharacter</code> parameter is NUL terminated, the NUL character is specified as an empty string.</p> <p><b id="SCI_CLEARALLREPRESENTATIONS">SCI_CLEARALLREPRESENTATIONS</b><br /> |
