mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-04 12:18:33 +02:00
- yhook: add helper function ParamList_exist()
This commit is contained in:
@@ -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
|
||||
//=============================================================================
|
||||
|
Reference in New Issue
Block a user