| 76 | cm::string_view const LL_END = "</LINK_LIBRARY:"_s; |
| 77 | } |
| 78 | cm::optional<std::string> ParseLinkFeature(std::string const& item) |
| 79 | { |
| 80 | if (cmHasPrefix(item, LL_BEGIN) && cmHasSuffix(item, '>')) { |
| 81 | return item.substr(LL_BEGIN.length(), |
| 82 | item.find('>', LL_BEGIN.length()) - LL_BEGIN.length()); |
| 83 | } |
| 84 | if (cmHasPrefix(item, LL_END) && cmHasSuffix(item, '>')) { |
| 85 | return cmLinkItem::DEFAULT; |
| 86 | } |
| 87 | return cm::nullopt; |
| 88 | } |
no test coverage detected
searching dependent graphs…