Find
Find a specified string in a string vector.
int Find( LPCSTR lpcsz, int nStartRow = 0, BOOL bCaseSensitive = false, BOOL bFullMatch = true, int nEndRow = -1 )
Return value will be -1 if lpcsz is not found else zero based index of element position.
EX1
void vector_Find_ex1() { vector<string> vsExt = {"OPJ", "TXT"}; if ( -1 == vsExt.Find("SPC") ) // if not found, returns -1 { out_str("No find!"); } int ii = vsExt.Find("xT", 0, false, false);// if found will return the index out_int("ii = ", ii); }
vectorbase::Find
origin.h