patternset.h

来自「WinMerge可以显示两个文件的不同之处」· C头文件 代码 · 共 43 行

H
43
字号
/** 
 * @file  PatternSet.h
 *
 * @brief Declaration of PatternSet class
 *
 * This applied an arbitrary number of regular expression transformations
 * either to make lines empty or to change them.
 *
 * This uses the CRegExp class from WinMerge Src\Common.
 */
// RCS ID line follows -- this is updated by CVS
// $Id: PatternSet.h,v 1.2.2.2 2006/08/08 14:01:20 galh Exp $

#ifndef PatternSet_h_included
#define PatternSet_h_included

class widestr;
class CRegExp;

class PatternSet
{
public:
	PatternSet();
	bool loadPatterns(HINSTANCE hinst);
	~PatternSet();
	bool processLine(widestr & wstr);

	bool shouldIgnoreQuotes() const { return m_ignoreQuotes; }

private:
	void clear();
private:
	CRegExp * m_ignoreRegexps;
	CRegExp * m_subRegexps;
	LPTSTR * m_replaceStrings;
	int m_ignoreLinesCount;
	int m_substitutionsCount;
	bool m_ignoreQuotes;
};


#endif // PatternSet_h_included

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?