llreplace/llreplace.cpp
// ---------------------------------------------------------------------------
// Return true if inPath (filename part) matches pattern in patternList
Return true if inPath (filename part) matches pattern in patternList
Return true if inPath ( filename part ) matches pattern in patternList
bool FileMatches(const lstring& inName, const PatternList& patternList, bool emptyResult)
{
    if (patternList.empty() || inName.empty())
        return emptyResult;
    for (size_t idx = 0; idx != patternList.size(); idx++)
        if (std::regex_match(inName.begin(), inName.end(), patternList[idx]))
            return true;
    return false;
}
bool FileMatches ( const lstring & inName , const PatternList & patternList , bool emptyResult ) { if ( patternList . empty ( ) || inName . empty ( ) ) return emptyResult ; for ( size_t idx = 0 ; idx != patternList . size ( ) ; idx ++ ) if ( std :: regex_match ( inName . begin ( ) , inName . end ( ) , patternList [ idx ] ) ) return true ; return false ; }
Return true if inPath (filename part) matches pattern in patternList
Return true if inPath ( filename part ) matches pattern in patternList