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