diff options
| author | nyamatongwe <unknown> | 2007-07-12 12:23:57 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2007-07-12 12:23:57 +0000 | 
| commit | 06dbb936d37d3579305548e874bf993965ea198b (patch) | |
| tree | fd4e228c1f9be298b87c399347d8b9a14cf0559b /include/PropSet.h | |
| parent | e8cdcc988c23dab37c019db5155f407e67946948 (diff) | |
| download | scintilla-mirror-06dbb936d37d3579305548e874bf993965ea198b.tar.gz | |
More complex WordList and PropSet functionality moved to SciTE.
Diffstat (limited to 'include/PropSet.h')
| -rw-r--r-- | include/PropSet.h | 22 | 
1 files changed, 3 insertions, 19 deletions
| diff --git a/include/PropSet.h b/include/PropSet.h index e9d028c44..4a845c263 100644 --- a/include/PropSet.h +++ b/include/PropSet.h @@ -33,7 +33,6 @@ protected:  	Property *props[hashRoots];  	Property *enumnext;  	int enumhash; -	static bool caseSensitiveFilenames;  	static unsigned int HashString(const char *s, size_t len) {  		unsigned int ret = 0;  		while (len--) { @@ -57,15 +56,8 @@ public:  	SString GetExpanded(const char *key);  	SString Expand(const char *withVars, int maxExpands=100);  	int GetInt(const char *key, int defaultValue=0); -	SString GetWild(const char *keybase, const char *filename); -	SString GetNewExpand(const char *keybase, const char *filename="");  	void Clear();  	char *ToString();	// Caller must delete[] the return value -	bool GetFirst(char **key, char **val); -	bool GetNext(char **key, char **val); -	static void SetCaseSensitiveFilenames(bool caseSensitiveFilenames_) { -		caseSensitiveFilenames = caseSensitiveFilenames_; -	}  private:  	// copy-value semantics not implemented @@ -79,29 +71,21 @@ class WordList {  public:  	// Each word contains at least one character - a empty word acts as sentinel at the end.  	char **words; -	char **wordsNoCase;  	char *list;  	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), sortedNoCase(false) {} +		words(0), list(0), len(0), onlyLineEnds(onlyLineEnds_), +		sorted(false) +		{}  	~WordList() { Clear(); }  	operator bool() { return len ? true : false; } -	char *operator[](int ind) { return words[ind]; }  	void Clear();  	void Set(const char *s); -	char *Allocate(int size); -	void SetFromAllocated();  	bool InList(const char *s);  	bool InListAbbreviated(const char *s, const char marker); -	const char *GetNearestWord(const char *wordStart, int searchLen, -		bool ignoreCase = false, SString wordCharacters="", int wordIndex = -1); -	char *GetNearestWords(const char *wordStart, int searchLen, -		bool ignoreCase=false, char otherSeparator='\0', bool exactLen=false);  };  inline bool IsAlphabetic(unsigned int ch) { | 
