Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (21 sloc) 650 Bytes
#ifndef __REPLACESTRINGPARSER_H__
#define __REPLACESTRINGPARSER_H__
#include <map>
#include <vector>
#include <wx/string.h>
#include "Interval.h"
class DocumentWrapper;
struct ReplaceStringParserState;
class ReplaceStringParser {
public:
ReplaceStringParser(const DocumentWrapper& doc, const wxString& indent,
const wxString& replacetext, const std::map<unsigned int, interval>& captures, const std::vector<char>* source=NULL);
~ReplaceStringParser();
wxString Parse();
private:
void DoParse(const wxChar* start, const wxChar* end);
const DocumentWrapper& m_doc;
const wxString& m_indent;
ReplaceStringParserState* state;
};
#endif