📄 managefilters.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 + -