yhook: add helper function ParamList_exist()

Origin commit data
------------------
Commit: 9c7ad87cff
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-03-01 (Tue, 01 Mar 2016)

Origin message was:
------------------
- yhook: add helper function ParamList_exist()
This commit is contained in:
vanhofen
2016-03-01 10:00:49 +01:00
parent 289f5b30e6
commit fb8f4cec67
2 changed files with 15 additions and 0 deletions

View File

@@ -366,6 +366,19 @@ std::string CyhookHandler::BuildHeader(bool cache) {
return result;
}
bool CyhookHandler::ParamList_exist(std::string keyword)
{
bool exist = false;
unsigned int s = ParamList.size();
for (unsigned int i = 1; i <= s; i++)
{
exist = (ParamList[itoa(i)] == keyword);
if (exist)
break;
}
return exist;
}
//=============================================================================
// Output helpers
//=============================================================================