static cur_vec test_read_cur(const FilePath& filePath){ return read_cur(filePath).Visit( [&](const cur_vec& cursors){ return cursors; }, [&](const utf8_string& error) -> cur_vec{ ABORT_TEST(filePath.Str().c_str(), error.c_str()); }); }
std::string iostream_friendly(const FilePath& path){ return path.Str().str(); }
std::wstring iostream_friendly(const FilePath& path){ return iostream_friendly(to_wx(path.Str())); }