mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-01 02:23:45 +00:00
[core] Regex refactoring
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -97,11 +97,16 @@ Platform::EError Platform::MkDir(std::string const & dirName)
|
||||
return Platform::ERR_OK;
|
||||
}
|
||||
|
||||
void Platform::GetFilesByRegExp(std::string const & directory, std::string const & regexp, FilesList & res)
|
||||
void Platform::GetFilesByRegExp(std::string const & directory, boost::regex const & regexp, FilesList & res)
|
||||
{
|
||||
pl::EnumerateFilesByRegExp(directory, regexp, res);
|
||||
}
|
||||
|
||||
void Platform::GetAllFiles(std::string const & directory, FilesList & res)
|
||||
{
|
||||
pl::EnumerateFiles(directory, res);
|
||||
}
|
||||
|
||||
bool Platform::GetFileSizeByName(std::string const & fileName, uint64_t & size) const
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user