diff options
author | nyamatongwe <devnull@localhost> | 2005-03-22 08:33:20 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2005-03-22 08:33:20 +0000 |
commit | c6fec06006c6c8a051900fd875e3ec1d80132d7c (patch) | |
tree | ac5cc7e1c6db743838363859e1d79b8ca404ac51 | |
parent | 8ff812ee43507881bded1bdf7f35f950b7e8e87c (diff) | |
download | scintilla-mirror-c6fec06006c6c8a051900fd875e3ec1d80132d7c.tar.gz |
Optimised by treating sort state of case sensitive and case insensitive
lists separately.
-rw-r--r-- | include/PropSet.h | 6 |
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 ©); 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]; } |