|
|
|
@ -2138,6 +2138,40 @@ CString CRecipeMgr::GetRecipePathByName(CString RecipeName)
|
|
|
|
|
//没找到
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
CString CRecipeMgr::CheckInvalidChar(CString Str)
|
|
|
|
|
{
|
|
|
|
|
CString RetStr = "";
|
|
|
|
|
int Len = Str.GetLength();
|
|
|
|
|
const char* CheckCh = (LPCTSTR)Str;
|
|
|
|
|
char ch;
|
|
|
|
|
for (int i = 0; i < Len; i++)
|
|
|
|
|
{
|
|
|
|
|
ch = *(CheckCh + i);
|
|
|
|
|
if ((ch >= 'a' && ch <= 'z')
|
|
|
|
|
|| (ch >= 'A' && ch <= 'Z')
|
|
|
|
|
|| ('%' == ch)
|
|
|
|
|
|| (ch >= '0' && ch <= '9')
|
|
|
|
|
|| ('_' == ch)
|
|
|
|
|
|| ('.' == ch&&i != 0 && i != Len - 1))
|
|
|
|
|
{
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if ('.' == ch)
|
|
|
|
|
{
|
|
|
|
|
RetStr = "'.'不能位于首尾!";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
RetStr = "含无效字符!(有效字符含字母大小写、数字、小数点、下划线、百分号)";
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return RetStr;
|
|
|
|
|
}
|
|
|
|
|
//获取所有recipe 文件的名称("TEST-RCP-PATICO.rcp")
|
|
|
|
|
void CRecipeMgr::GetAllRecipeNameVec(vector<CString> &RcpNameVec)
|
|
|
|
|
{
|
|
|
|
|