diff options
| author | mitchell <unknown> | 2019-04-16 22:50:17 -0400 |
|---|---|---|
| committer | mitchell <unknown> | 2019-04-16 22:50:17 -0400 |
| commit | 86266d4700632860705fc2d4e88d4be4f5228be1 (patch) | |
| tree | f330e0f843dcef19d0c69506fa1df4637ccd820e /src/Document.h | |
| parent | 4c22cdbe64a4024053c202521b69524c655a2c5d (diff) | |
| download | scintilla-mirror-86266d4700632860705fc2d4e88d4be4f5228be1.tar.gz | |
Backport: Feature [feature-requests:#1259]. Add SCI_SETCHARACTERCATEGORYOPTIMIZATION API to optimize speed of character category features.
Backport of changeset 7392:2832adedd0f4, but with added includes for Sci::clamp().
Diffstat (limited to 'src/Document.h')
| -rw-r--r-- | src/Document.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Document.h b/src/Document.h index f97e1393f..adbdc3413 100644 --- a/src/Document.h +++ b/src/Document.h @@ -230,6 +230,7 @@ private: int refCount; CellBuffer cb; CharClassify charClass; + CharacterCategoryMap charMap; std::unique_ptr<CaseFolder> pcf; Sci::Position endStyled; int styleClock; @@ -444,6 +445,8 @@ public: void SetDefaultCharClasses(bool includeWordClass); void SetCharClasses(const unsigned char *chars, CharClassify::cc newCharClass); int GetCharsOfClass(CharClassify::cc characterClass, unsigned char *buffer) const; + void SetCharacterCategoryOptimization(int countCharacters); + int CharacterCategoryOptimization() const noexcept; void SCI_METHOD StartStyling(Sci_Position position, char mask) override; bool SCI_METHOD SetStyleFor(Sci_Position length, char style) override; bool SCI_METHOD SetStyles(Sci_Position length, const char *styles) override; |
