//InArray.cpp
//purpose: Test if value (son) in array (mom)
//djg 2010-06-07
//
//ÅÐ¶Ï×Ö·û´®ÊÇ·ñÏàµÈ
//

bool InArray(array& mom, string& son, bool bCaseSens)
{
	int nSize = mom.getSize();
	for (int i = 0; i < nSize; ++i)
	{
		if (bCaseSens)
		{
			 	if (mom[i].compare(son)==0)	
					return true;
		}
		else
		{
			if (mom[i].compareNoCase(son)==0)
				return true;
		}				
	}
	
	return false;
}