diff options
Diffstat (limited to 'include')
-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) { |