aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2005-03-22 08:33:20 +0000
committernyamatongwe <unknown>2005-03-22 08:33:20 +0000
commit375c2cc480b1d6645ba649012cbdadb3b2ae1883 (patch)
treeac5cc7e1c6db743838363859e1d79b8ca404ac51
parent0eeee7531d739c2fc06e54eb56d27f361ece0503 (diff)
downloadscintilla-mirror-375c2cc480b1d6645ba649012cbdadb3b2ae1883.tar.gz
Optimised by treating sort state of case sensitive and case insensitive
lists separately.
-rw-r--r--include/PropSet.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/PropSet.h b/include/PropSet.h
index 32aea8a0c..1eb195d2f 100644
--- a/include/PropSet.h
+++ b/include/PropSet.h
@@ -60,7 +60,7 @@ public:
bool GetNext(char **key, char **val);
private:
- // copy-value semantics not implemented
+ // copy-value semantics not implemented
PropSet(const PropSet &copy);
void operator=(const PropSet &assign);
};
@@ -76,9 +76,11 @@ public:
int len;
bool onlyLineEnds; ///< Delimited by any white space or only line ends
bool sorted;
+ bool sortedNoCase;
int starts[256];
WordList(bool onlyLineEnds_ = false) :
- words(0), wordsNoCase(0), list(0), len(0), onlyLineEnds(onlyLineEnds_), sorted(false) {}
+ words(0), wordsNoCase(0), list(0), len(0), onlyLineEnds(onlyLineEnds_),
+ sorted(false), sortedNoCase(false) {}
~WordList() { Clear(); }
operator bool() { return len ? true : false; }
char *operator[](int ind) { return words[ind]; }