diff options
author | Neil <nyamatongwe@gmail.com> | 2023-02-12 12:01:21 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2023-02-12 12:01:21 +1100 |
commit | 80a1e22a987c4e749dd03500edc3ac4e189537c5 (patch) | |
tree | 1dc58be5e57c8c77036e2201806ac7f20dd38dfb /src/EditView.cxx | |
parent | 1b585d29ad82606c327294837e27ffcd7a66172b (diff) | |
download | scintilla-mirror-80a1e22a987c4e749dd03500edc3ac4e189537c5.tar.gz |
Feature [feature-requests:#1476] Move default representation code into
SpecialRepresentations class.
Diffstat (limited to 'src/EditView.cxx')
-rw-r--r-- | src/EditView.cxx | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/EditView.cxx b/src/EditView.cxx index f93303f6c..259ebf30d 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -178,13 +178,6 @@ void DrawStyledText(Surface *surface, const ViewStyle &vs, int styleOffset, PRec } } -void Hexits(char *hexits, int ch) noexcept { - hexits[0] = 'x'; - hexits[1] = "0123456789ABCDEF"[ch / 0x10]; - hexits[2] = "0123456789ABCDEF"[ch % 0x10]; - hexits[3] = 0; -} - } EditView::EditView() { @@ -894,20 +887,6 @@ ColourRGBA TextBackground(const EditModel &model, const ViewStyle &vsDraw, const } } -const char *ControlCharacterString(unsigned char ch) noexcept { - const char *const reps[] = { - "NUL", "SOH", "STX", "ETX", "EOT", "ENQ", "ACK", "BEL", - "BS", "HT", "LF", "VT", "FF", "CR", "SO", "SI", - "DLE", "DC1", "DC2", "DC3", "DC4", "NAK", "SYN", "ETB", - "CAN", "EM", "SUB", "ESC", "FS", "GS", "RS", "US" - }; - if (ch < std::size(reps)) { - return reps[ch]; - } else { - return "BAD"; - } -} - void DrawTextBlob(Surface *surface, const ViewStyle &vsDraw, PRectangle rcSegment, std::string_view text, ColourRGBA textBack, ColourRGBA textFore, bool fillBackground) { if (rcSegment.Empty()) |