this->GroupRegex.compile("^$");
}
}
-
+
//----------------------------------------------------------------------------
void cmSourceGroup::AddGroupFile(const char* name)
{
this->GroupFiles.insert(name);
}
-
+
//----------------------------------------------------------------------------
const char* cmSourceGroup::GetName() const
{
{
return this->FullName.c_str();
}
-
+
//----------------------------------------------------------------------------
bool cmSourceGroup::MatchesRegex(const char* name)
{
// st
for(;iter!=end; ++iter)
{
- std::string sgName = iter->GetName();
+ std::string sgName = iter->GetName();
// look if descenened is the one were looking for
if(sgName == name)
{
- return &(*iter); // if it so return it
+ return &(*iter); // if it so return it
}
}
std::vector<cmSourceGroup>::iterator end =
this->Internal->GroupChildren.end();
- if(this->MatchesRegex(name))
- {
- return this;
- }
for(;iter!=end; ++iter)
{
cmSourceGroup *result = iter->MatchChildrenRegex(name);
return result;
}
}
+ if(this->MatchesRegex(name))
+ {
+ return this;
+ }
+
return 0;
}