forked from organicmaps/organicmaps
[base, std] Followup fix - replace base/regexp.hpp by base/regex.hpp
This commit is contained in:
parent
a14b274500
commit
3d770500c1
1 changed files with 4 additions and 4 deletions
|
@ -8,9 +8,10 @@
|
|||
|
||||
#include "base/logging.hpp"
|
||||
#include "base/thread.hpp"
|
||||
#include "base/regexp.hpp"
|
||||
#include "base/string_utils.hpp"
|
||||
|
||||
#include "std/regex.hpp"
|
||||
|
||||
#include <unistd.h> // for sysconf
|
||||
#include <sys/stat.h>
|
||||
|
||||
|
@ -196,13 +197,12 @@ void Platform::GetFilesByRegExp(string const & directory, string const & regexp,
|
|||
FilesT fList;
|
||||
ZipFileReader::FilesList(directory, fList);
|
||||
|
||||
regexp::RegExpT exp;
|
||||
regexp::Create(regexp, exp);
|
||||
regex exp(regexp);
|
||||
|
||||
for (FilesT::iterator it = fList.begin(); it != fList.end(); ++it)
|
||||
{
|
||||
string & name = it->first;
|
||||
if (regexp::IsExist(name, exp))
|
||||
if (regex_search(name.begin(), name.end(), exp))
|
||||
{
|
||||
// Remove assets/ prefix - clean files are needed for fonts white/blacklisting logic
|
||||
size_t const ASSETS_LENGTH = 7;
|
||||
|
|
Loading…
Add table
Reference in a new issue