10 std::string const regex_prefix{
"([-A-Za-z0-9]*_)*"};
11 std::regex
const slash{
"/"};
16 std::string const canonSpec = std::regex_replace(spec, slash,
"_");
17 return regex_prefix + canonSpec +
"_";
20 inline std::vector<std::string>
23 std::vector<std::string>
result;
35 auto const& libs = getLibraries(lm);
38 for (
auto const& lib : libs) {
39 auto const& libspecs = lm.getSpecsByPath(lib);
40 if (libspecs.first.find(spec) == 0) {
41 str += libspecs.first;
45 if (!libspecs.second.empty() && libspecs.second.find(spec) == 0) {
46 str += libspecs.second;
size_t getLoadableLibraries(std::vector< std::string > &list) const
void loadable_libraries(std::ostream &os, std::string const &spec, std::string const &suffix)