diff options
| author | Neil <nyamatongwe@gmail.com> | 2025-02-14 11:48:31 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2025-02-14 11:48:31 +1100 |
| commit | 10e12f5d8d45ce1dadc97a09c11f9e0f340a79d3 (patch) | |
| tree | 6b9572523c2cb7ab28a87094d7fc68efca13a5ec /src/Document.h | |
| parent | 33b4899b327695a66e3dd2ef056516a45a253878 (diff) | |
| download | scintilla-mirror-10e12f5d8d45ce1dadc97a09c11f9e0f340a79d3.tar.gz | |
Implement LastCharacter to return the last character or character fragment in a
potentially invalid UTF-8 string. Use this in DiscardLastCombinedCharacter.
Place DiscardLastCombinedCharacter in Scintilla::Internal namespace for use in
text wrap.
Diffstat (limited to 'src/Document.h')
| -rw-r--r-- | src/Document.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Document.h b/src/Document.h index 4e18c42d1..4c6832d89 100644 --- a/src/Document.h +++ b/src/Document.h @@ -273,6 +273,8 @@ struct CharacterExtracted { } }; +bool DiscardLastCombinedCharacter(std::string_view &text) noexcept; + /** */ class Document : PerLine, public Scintilla::IDocument, public Scintilla::ILoader, public Scintilla::IDocumentEditable { |
