xml-copy-editor-code/src/contexthandler.h

32 lines
465 B
C
Raw Normal View History

#ifndef CONTEXT_HANDLER
#define CONTEXT_HANDLER
#include <string>
using namespace std;
class ContextMatch
{
public:
string prelog;
string match;
string postlog;
string replace;
string report;
size_t elementCount;
int offset;
bool tentative;
};
class ContextHandler
{
public:
static ContextMatch getContext(
char *s,
int len,
char *origin,
int context);
};
#endif