diff options
author | Neil <nyamatongwe@gmail.com> | 2023-01-23 14:34:17 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2023-01-23 14:34:17 +1100 |
commit | 1a9af9dcdfcc8b6c1124278f3c1d9d64075ae82b (patch) | |
tree | 88b46a550d5054d2c19959607c085294b497ba0f /src/PositionCache.h | |
parent | 887da82073d4ab855a3ba95deaa652d475df21e2 (diff) | |
download | scintilla-mirror-1a9af9dcdfcc8b6c1124278f3c1d9d64075ae82b.tar.gz |
Allow UTF-8 entries to coexist in the position cache alongside the document
encoding. Elements like character representations may be in UTF-8 while the
document is in a different encoding. UTF-8 will be used for additional features
and may later be the only encoding for the position cache.
This change does not change performance or the proportion of strings cached -
its purpose is to clean up callers and prepare for greater UTF-8 use.
Diffstat (limited to 'src/PositionCache.h')
-rw-r--r-- | src/PositionCache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PositionCache.h b/src/PositionCache.h index 834472e75..9a4babae7 100644 --- a/src/PositionCache.h +++ b/src/PositionCache.h @@ -257,7 +257,7 @@ public: virtual void SetSize(size_t size_) = 0; virtual size_t GetSize() const noexcept = 0; virtual void MeasureWidths(Surface *surface, const ViewStyle &vstyle, unsigned int styleNumber, - std::string_view sv, XYPOSITION *positions, bool needsLocking) = 0; + bool unicode, std::string_view sv, XYPOSITION *positions, bool needsLocking) = 0; }; std::unique_ptr<IPositionCache> CreatePositionCache(); |