19 std::string
get() {
return std::string(_format.begin(), _format.end()); }
const 20 void set(
const std::wstring fileName,
const std::wstring extension)
22 if (fileName.find(L
"clusterfuzz-testcase-") == -1)
24 if (extension.length() > 1)
25 _format = extension.substr(1, extension.size() - 1);
29 std::wstring format=fileName;
31 size_t index = format.find(L
"_", 0);
32 if (index == std::wstring::npos)
35 format=format.substr(index + 1);
36 index = format.find(L
"_", 0);
37 if (index != std::wstring::npos)
38 _format=format.substr(0, index);
39 else if (extension.length() > 1)
40 _format=extension.substr(1, extension.size() - 1);
43 std::wstring _format = L
".notset";