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

📄 managefilters.cpp

📁 The C++ Client Edition contains a full set of C++ class libraries, with client side source code for
💻 CPP
字号:
#include "StdAfx.h"
#include ".\managefilters.h"

CManageFilters::CManageFilters(const char* in_szFilterPath)
{
	m_szPath = strdup(in_szFilterPath);
}

CManageFilters::~CManageFilters(void)
{
}


int CManageFilters::LoadPatternSearch()
{
	if (m_szPath != NULL)
	{
		FILE* pf = fopen(m_szPath,"r");

		if (pf == NULL)
		{
			return -1;
		}


		char line[100];	

		while(fgets(line, 100, pf))
		{
			if(line[strlen(line) - 1] == '\n')
				line[strlen(line) - 1] = 0;
			
			m_vecPatternSearch.push_back(_mbsdup((const unsigned char*)line));
		}

		fclose(pf);
	}
	else
	{
		return -1;
	}

	// If Successfull
	return 1;
}

⌨️ 快捷键说明

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