MCPcopy Create free account
hub / github.com/Kitware/VTK / vtkNameIsSharedLibrary

Function vtkNameIsSharedLibrary

Common/Core/vtkObjectFactory.cxx:158–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156// lower case for LibExtension values.
157
158inline 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
173void vtkObjectFactory::LoadLibrariesInPath(const std::string& path)
174{

Callers 1

LoadLibrariesInPathMethod · 0.85

Calls 1

tolowerFunction · 0.85

Tested by

no test coverage detected