------------------------------------------------------------------------------
| 299 | |
| 300 | //------------------------------------------------------------------------------ |
| 301 | void vtkGenericEnSightReader::SanitizeFileName(std::string& filename) |
| 302 | { |
| 303 | char quotes = '\"'; |
| 304 | size_t found = filename.find(quotes); |
| 305 | if (found != std::string::npos) |
| 306 | { |
| 307 | filename.erase(std::remove(filename.begin(), filename.end(), quotes), filename.end()); |
| 308 | } |
| 309 | |
| 310 | // the strings we're using this on probably only have trailing spaces, but we'll |
| 311 | // include others just in case |
| 312 | std::string whitespaces(" \t\n\r"); |
| 313 | found = filename.find_last_not_of(whitespaces); |
| 314 | if (found != std::string::npos) |
| 315 | { |
| 316 | filename.erase(found + 1); |
| 317 | } |
| 318 | } |
| 319 | |
| 320 | //------------------------------------------------------------------------------ |
| 321 | int vtkGenericEnSightReader::DetermineEnSightVersion(int quiet) |
no test coverage detected