| 655 | |
| 656 | namespace { |
| 657 | void FinalizeFeatureFormat(std::string& format, std::string const& activeTag, |
| 658 | std::string const& otherTag) |
| 659 | { |
| 660 | auto pos = format.find(otherTag); |
| 661 | if (pos != std::string::npos) { |
| 662 | format.erase(pos, format.find('}', pos) - pos + 1); |
| 663 | } |
| 664 | pos = format.find(activeTag); |
| 665 | if (pos != std::string::npos) { |
| 666 | format.erase(pos, activeTag.length()); |
| 667 | pos = format.find('}', pos); |
| 668 | if (pos != std::string::npos) { |
| 669 | format.erase(pos, 1); |
| 670 | } |
| 671 | } |
| 672 | } |
| 673 | |
| 674 | bool IsValidFeatureFormat(std::string const& format) |
| 675 | { |
no test coverage detected
searching dependent graphs…