| 156 | // lower case for LibExtension values. |
| 157 | |
| 158 | inline int vtkNameIsSharedLibrary(const char* name) |
| 159 | { |
| 160 | int len = static_cast<int>(strlen(name)); |
| 161 | char* copy = new char[len + 1]; |
| 162 | |
| 163 | for (int i = 0; i < len; i++) |
| 164 | { |
| 165 | copy[i] = static_cast<char>(tolower(name[i])); |
| 166 | } |
| 167 | copy[len] = 0; |
| 168 | char* ret = strstr(copy, vtkDynamicLoader::LibExtension()); |
| 169 | delete[] copy; |
| 170 | return (ret != nullptr); |
| 171 | } |
| 172 | |
| 173 | void vtkObjectFactory::LoadLibrariesInPath(const std::string& path) |
| 174 | { |
no test coverage detected