mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Attempt to make work on Windows.
This commit is contained in:
@@ -63,7 +63,7 @@ public:
|
||||
static const std::regex FILENAME_REGEX(
|
||||
"C_S([0-9]+)T([0-9]+)\\.[0-9]+");
|
||||
|
||||
std::string filename = di.path().filename();
|
||||
std::string filename = di.path().filename().string();
|
||||
std::smatch dmatch;
|
||||
if (std::regex_match(filename, dmatch, FILENAME_REGEX))
|
||||
chs.push_back(CylinderHead{(unsigned)std::stoi(dmatch[2]),
|
||||
|
||||
@@ -18,7 +18,7 @@ public:
|
||||
static const std::regex FILENAME_REGEX(
|
||||
"@TR([0-9]+)S([0-9]+)@\\.FLX");
|
||||
|
||||
std::string filename = di.path().filename();
|
||||
std::string filename = di.path().filename().string();
|
||||
std::smatch dmatch;
|
||||
if (std::regex_match(filename, dmatch, FILENAME_REGEX))
|
||||
chs.push_back(CylinderHead{(unsigned)std::stoi(dmatch[1]),
|
||||
|
||||
@@ -17,7 +17,7 @@ public:
|
||||
{
|
||||
static const std::regex FILENAME_REGEX("([0-9]+)\\.([0-9]+)\\.raw");
|
||||
|
||||
std::string filename = di.path().filename();
|
||||
std::string filename = di.path().filename().string();
|
||||
std::smatch dmatch;
|
||||
if (std::regex_match(filename, dmatch, FILENAME_REGEX))
|
||||
chs.push_back(CylinderHead{(unsigned)std::stoi(dmatch[1]),
|
||||
|
||||
Reference in New Issue
Block a user