From 3ae28530ef1807d3b99c462ab3f53acbe3153b12 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Thu, 26 Jun 2008 09:18:41 +0000 Subject: Actually reverted stupid changes in Common::String and Util.cpp regarding Regex and the platform function. svn-id: r32797 --- common/str.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'common/str.h') diff --git a/common/str.h b/common/str.h index 2ea151ba96..a92ec34fff 100644 --- a/common/str.h +++ b/common/str.h @@ -165,9 +165,6 @@ public: uint hash() const; - // Tanoku: Regular expression support for the String class - bool regexMatch(const char *regex, bool skipSpaces = false); - public: typedef char * iterator; typedef const char * const_iterator; @@ -192,20 +189,6 @@ protected: void ensureCapacity(uint32 new_len, bool keep_old); void incRefCount() const; void decRefCount(int *oldRefCount); - - enum RegexMatchType { - kRegexMatchAny, - kRegexMatchDigit, - kRegexMatchSpace, - kRegexMatchAlphanum, - kRegexMatchAlpha, - kRegexMatchWord, - kRegexMatchCharacter - }; - - bool regexMatchStar(RegexMatchType type, char regexChar, const char *regex, int regexPos, int strPos, bool skipSpaces); - bool regexMatchCharacter(RegexMatchType type, char regexChar, char strChar); - bool regexMatchPos(int strPos, const char *regex, int regexPos, bool skipSpaces); }; // Append two strings to form a new (temp) string -- cgit v1.2.3