⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pcre.hpp

📁 内存管理工具Exmap。该工具比 ps 或 top 更精确
💻 HPP
字号:
#ifndef _PCRE_HPP#define _PCRE_HPP#include <string>#include <list>#include <pcre.h>namespace Pcre{    class Regexp    {    public:	Regexp();	~Regexp();	bool compile(const std::string &patten);	bool matches(const std::string &s);	bool match_capture(const std::string &s,			   std::list<std::string> &captures);	/// Modifies the list!	void grep(std::list<std::string> &lines);    private:	void pcre_check_free();	Regexp(const Regexp &other);	const Regexp &operator=(const Regexp &other);	pcre *_regexp;	int _num_captures;	std::string _lasterr;	int _lasterroffset;    };};#endif

⌨️ 快捷键说明

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