MCPcopy Create free account
hub / github.com/Kitware/CMake / RegexFromList

Method RegexFromList

Source/cmFindLibraryCommand.cxx:359–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357}
358
359void cmFindLibraryHelper::RegexFromList(std::string& out, cmList const& in,
360 cmSystemTools::DirCase dirCase)
361{
362 // Surround the list in parens so the '|' does not apply to anything
363 // else and the result can be checked after matching.
364 out += "(";
365 char const* sep = "";
366 for (auto const& s : in) {
367 // Separate from previous item.
368 out += sep;
369 sep = "|";
370
371 // Append this item.
372 this->RegexFromLiteral(out, s, dirCase);
373 }
374 out += ")";
375}
376
377bool cmFindLibraryHelper::HasValidSuffix(std::string const& name)
378{

Callers 1

cmFindLibraryHelperMethod · 0.95

Calls 1

RegexFromLiteralMethod · 0.95

Tested by

no test coverage detected