diff options
author | nyamatongwe <unknown> | 2004-01-20 12:09:08 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2004-01-20 12:09:08 +0000 |
commit | ea2e7c10cc227cee9f939d38116c1cd3608d7a1b (patch) | |
tree | b4ae7513d811353fb24759e4674935b05979a2af /src/Document.h | |
parent | 3e1668f499d347b5f091d22789dba243cc98f860 (diff) | |
download | scintilla-mirror-ea2e7c10cc227cee9f939d38116c1cd3608d7a1b.tar.gz |
Method to preallocate document space.
Diffstat (limited to 'src/Document.h')
-rw-r--r-- | src/Document.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Document.h b/src/Document.h index f5436ab4f..18b47eaf5 100644 --- a/src/Document.h +++ b/src/Document.h @@ -87,7 +87,7 @@ public: userData = 0; } }; - + enum charClassification { ccSpace, ccNewLine, ccWord, ccPunctuation }; private: @@ -193,6 +193,7 @@ public: int NextWordStart(int pos, int delta); int NextWordEnd(int pos, int delta); int Length() { return cb.Length(); } + void Allocate(int newSize) { cb.Allocate(newSize*2); } long FindText(int minPos, int maxPos, const char *s, bool caseSensitive, bool word, bool wordStart, bool regExp, bool posix, int *length); long FindText(int iMessage, unsigned long wParam, long lParam); @@ -200,7 +201,7 @@ public: int LinesTotal(); void ChangeCase(Range r, bool makeUpperCase); - + void SetDefaultCharClasses(); void SetCharClasses(unsigned char *chars, charClassification newCharClass); void SetStylingBits(int bits); |