9 bool endsWith(std::string
const& str, std::string
const& end)
11 return str.size() >= end.size() && str.compare(str.size() - end.size(), end.size(), end) == 0;
29 if (endsWith(name,
".so") || endsWith(name,
".dylib")) {
std::string getLibraryFilename(std::string const &name)
Get filename for library.
std::string libraryExtension()
Return filename extension for libraries.
bool canLoadLibrary(std::string const &libName)
Return whether we can load a library.