3 std::string
get() {
return std::string(_format.begin(), _format.end()); }
const 4 void set(
const std::wstring fileName,
const std::wstring extension)
6 if (fileName.find(L
"clusterfuzz-testcase-") == -1)
8 if (extension.length() > 1)
9 _format = extension.substr(1, extension.size() - 1);
13 std::wstring format=fileName;
15 size_t index = format.find(L
"_", 0);
16 if (index == std::wstring::npos)
19 format=format.substr(index + 1);
20 index = format.find(L
"_", 0);
21 if (index != std::wstring::npos)
22 _format=format.substr(0, index);
23 else if (extension.length() > 1)
24 _format=extension.substr(1, extension.size() - 1);
27 std::wstring _format = L
".notset";