include/StringUtils.hxx
// Checks if string occurs in list of strings or not.
// Equivalent to Python: s in lst
Checks if string occurs in list of strings or not.
Equivalent to Python: s in lst
Checks if string occurs in list of strings or not . Equivalent to Python : s in lst
inline bool stringInList(const std::string &s, const std::vector<std::string> &lst)
{
	for (int i = 0; i < (int)lst.size(); ++i)
	{
		if (lst[i] == s)
			return true;
	}
	return false;
}
inline bool stringInList ( const std :: string & s , const std :: vector < std :: string > & lst ) { for ( int i = 0 ; i < ( int ) lst . size ( ) ; ++ i ) { if ( lst [ i ] == s ) return true ; } return false ; }
Checks if string occurs in list of strings or not.
Checks if string occurs in list of strings or not .