From 80a1e22a987c4e749dd03500edc3ac4e189537c5 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 12 Feb 2023 12:01:21 +1100 Subject: Feature [feature-requests:#1476] Move default representation code into SpecialRepresentations class. --- src/PositionCache.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/PositionCache.h') diff --git a/src/PositionCache.h b/src/PositionCache.h index 231b9791e..0add8319a 100644 --- a/src/PositionCache.h +++ b/src/PositionCache.h @@ -180,6 +180,9 @@ public: typedef std::map MapRepresentation; +const char *ControlCharacterString(unsigned char ch) noexcept; +void Hexits(char *hexits, int ch) noexcept; + class SpecialRepresentations { MapRepresentation mapReprs; unsigned short startByteHasReprs[0x100] {}; @@ -199,6 +202,7 @@ public: return startByteHasReprs[ch] != 0; } void Clear(); + void SetDefaultRepresentations(int dbcsCodePage); }; struct TextSegment { -- cgit v1.2.3