managefilters.cpp
来自「The C++ Client Edition contains a full s」· C++ 代码 · 共 46 行
CPP
46 行
#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 + =
减小字号Ctrl + -
显示快捷键?