/*************************************************************
*
* (c) 1999, 2000 Christoph Pinkel
* This is part of the VisKProg project.
*
* You may use it under the terms of the GPL licence.
* See COPYING for more details!
*
**************************************************************/

#ifndef PRFILTER_H
#define PRFILTER_H

#include <qstring.h>
#include <qregexp.h>

class prfilter
{

public:
	//Replaces newlines with literal "\012" strings:
	static QString oneLine(QString);
	//Replaces "\012" tokens with real newlines:
	static QString mLines(QString);

	//Replaces quotas with "\042" escape sequences:
	static QString encodeQs(QString);
	//Changes "\042" substrings to quotas:
	static QString decodeQs(QString);
};

#endif