aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2012-09-04 19:07:18 +1000
committernyamatongwe <unknown>2012-09-04 19:07:18 +1000
commit4ad8875e7e798bc679a6835e309db717a693941a (patch)
tree6c8ad0dc96474c2b810d49663b8f2e5bb7c7957c /src/Document.h
parent64e8c5fe5f09220d138539e70291f8dd4cbf1e18 (diff)
downloadscintilla-mirror-4ad8875e7e798bc679a6835e309db717a693941a.tar.gz
Cache the CaseFolder object between FindText calls so that finding many instances
of a common string in the document doesn't spend excessive time constructing case folder objects.
Diffstat (limited to 'src/Document.h')
-rw-r--r--src/Document.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Document.h b/src/Document.h
index 30c6aee1c..36d670937 100644
--- a/src/Document.h
+++ b/src/Document.h
@@ -212,6 +212,7 @@ private:
int refCount;
CellBuffer cb;
CharClassify charClass;
+ CaseFolder *pcf;
char stylingMask;
int endStyled;
int styleClock;
@@ -255,6 +256,7 @@ public:
int SCI_METHOD Release();
virtual void Init();
+ bool SetDBCSCodePage(int dbcsCodePage_);
virtual void InsertLine(int line);
virtual void RemoveLine(int line);
@@ -355,8 +357,10 @@ public:
int SCI_METHOD Length() const { return cb.Length(); }
void Allocate(int newSize) { cb.Allocate(newSize); }
bool MatchesWordOptions(bool word, bool wordStart, int pos, int length);
+ bool HasCaseFolder(void) const;
+ void SetCaseFolder(CaseFolder *pcf_);
long FindText(int minPos, int maxPos, const char *search, bool caseSensitive, bool word,
- bool wordStart, bool regExp, int flags, int *length, CaseFolder *pcf);
+ bool wordStart, bool regExp, int flags, int *length);
const char *SubstituteByPosition(const char *text, int *length);
int LinesTotal() const;