diff options
| author | nyamatongwe <unknown> | 2003-07-31 12:58:39 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2003-07-31 12:58:39 +0000 | 
| commit | 79b3b3de851cd602e66a26e9a6eb766386e938bb (patch) | |
| tree | 125028014464f9550482342f13c0ea2b591c742f /include/PropSet.h | |
| parent | 2fd0a0456efc81c57cb2873faa10e3e670db3957 (diff) | |
| download | scintilla-mirror-79b3b3de851cd602e66a26e9a6eb766386e938bb.tar.gz | |
Made some of PropSet protected so it can be overridden.
Diffstat (limited to 'include/PropSet.h')
| -rw-r--r-- | include/PropSet.h | 18 | 
1 files changed, 14 insertions, 4 deletions
| diff --git a/include/PropSet.h b/include/PropSet.h index b32082491..20ac5f774 100644 --- a/include/PropSet.h +++ b/include/PropSet.h @@ -24,11 +24,21 @@ struct Property {  /**   */  class PropSet { -private: +protected:  	enum { hashRoots=31 };  	Property *props[hashRoots];  	Property *enumnext;  	int enumhash; +	static unsigned int HashString(const char *s, size_t len) { +		unsigned int ret = 0; +		while (len--) { +			ret <<= 4; +			ret ^= *s; +			s++; +		} +		return ret; +	} +	static bool IncludesVar(const char *value, const char *key);  public:  	PropSet *superPS;  	PropSet(); @@ -60,7 +70,7 @@ public:  	bool onlyLineEnds;	///< Delimited by any white space or only line ends  	bool sorted;  	int starts[256]; -	WordList(bool onlyLineEnds_ = false) :  +	WordList(bool onlyLineEnds_ = false) :  		words(0), wordsNoCase(0), list(0), len(0), onlyLineEnds(onlyLineEnds_), sorted(false) {}  	~WordList() { Clear(); }  	operator bool() { return len ? true : false; } @@ -70,9 +80,9 @@ public:  	char *Allocate(int size);  	void SetFromAllocated();  	bool InList(const char *s); -	const char *GetNearestWord(const char *wordStart, int searchLen = -1,  +	const char *GetNearestWord(const char *wordStart, int searchLen = -1,  		bool ignoreCase = false, SString wordCharacters=""); -	char *GetNearestWords(const char *wordStart, int searchLen=-1,  +	char *GetNearestWords(const char *wordStart, int searchLen=-1,  		bool ignoreCase=false, char otherSeparator='\0');  }; | 
