[ObjectHandler-cvs] ObjectHandler/oh objecthandler.cpp,1.9,1.10
Brought to you by:
ericehlers,
nando
From: Eric E. <eri...@us...> - 2007-01-09 14:38:00
|
Update of /cvsroot/objecthandler/ObjectHandler/oh In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv21874/oh Modified Files: objecthandler.cpp Log Message: ohListObjectIDs() - use case insensitive regex Index: objecthandler.cpp =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/oh/objecthandler.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** objecthandler.cpp 3 Jan 2007 09:03:47 -0000 1.9 --- objecthandler.cpp 9 Jan 2007 14:37:58 -0000 1.10 *************** *** 127,136 **** objectIDs.push_back(i->first); } else { ! boost::regex r(regex); for (OhRepository::const_iterator i=repository_.begin(); i!=repository_.end(); ++i) { string objectID = i->first; - // FIXME: it should be case insensitive if (regex_match(objectID, r)) objectIDs.push_back(objectID); } --- 127,135 ---- objectIDs.push_back(i->first); } else { ! boost::regex r(regex, boost::regex::perl | boost::regex::icase); for (OhRepository::const_iterator i=repository_.begin(); i!=repository_.end(); ++i) { string objectID = i->first; if (regex_match(objectID, r)) objectIDs.push_back(objectID); } |