diff options
author | Zufu Liu <unknown> | 2021-10-21 22:32:07 +1100 |
---|---|---|
committer | Zufu Liu <unknown> | 2021-10-21 22:32:07 +1100 |
commit | f4b4a177900d6315f40850b07cdb6daa649c0595 (patch) | |
tree | b40b4eb96e1772a55db5c5e79aef6955f1a04e32 /src/PositionCache.h | |
parent | a344b8f5f124000f7f3820fbb1d87b8e0adf5092 (diff) | |
download | scintilla-mirror-f4b4a177900d6315f40850b07cdb6daa649c0595.tar.gz |
Feature [feature-requests:#1417] Cache maximum key value in
SpecialRepresentations as this allows quick determination of absence for most
multi-byte UTF-8 and DBCS characters.
Diffstat (limited to 'src/PositionCache.h')
-rw-r--r-- | src/PositionCache.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/PositionCache.h b/src/PositionCache.h index 9a9f2e6fc..4ee501841 100644 --- a/src/PositionCache.h +++ b/src/PositionCache.h @@ -201,6 +201,7 @@ typedef std::map<unsigned int, Representation> MapRepresentation; class SpecialRepresentations { MapRepresentation mapReprs; unsigned short startByteHasReprs[0x100] {}; + unsigned int maxKey = 0; bool crlf = false; public: void SetRepresentation(std::string_view charBytes, std::string_view value); |