Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package


 * Name:      TextFileSearcherRegEx
 * Purpose:   TextFileSearcherRegEx implements the TextFileSearcher
 *            interface. It is used to search text files for a
 *            regular expression.
 * Author:    Jerome ANTOINE
 * Created:   2007-04-07
 * Copyright: Jerome ANTOINE
 * License:   GPL


#include <wx/regex.h>
#include <wx/string.h>

#include "TextFileSearcher.h"

00020 class TextFileSearcherRegEx : public TextFileSearcher
      /** Constructor. */
      TextFileSearcherRegEx(const wxString& searchText, bool matchCase, bool matchWordBegin,
                                      bool matchWord);

      /** Destructor. */
00029       virtual ~TextFileSearcherRegEx() {};

      /** Return true if Line matches search text.
        * This method is inherited from TextFileSearcher and is used to implement
        * different search strategies. In TextFileSearcherRegEx, the searchText provided
        * in the constructor is a regular expression pattern.
        * @param Line : the text line to match.
        * @return true if line matches search text.
      virtual bool MatchLine(wxString line);

      /** Return true if object is OK.
        * @return true if object is Ok, ie usable.
      virtual bool IsOk(wxString* pErrorMessage = NULL);

      wxRegEx m_RegEx;


Generated by  Doxygen 1.6.0   Back to index