| /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying |
| file Copyright.txt or https://cmake.org/licensing for details. */ |
| #include "cmsys/RegularExpression.hxx" |
| class cmStringReplaceHelper |
| cmStringReplaceHelper(const std::string& regex, std::string replace_expr, |
| cmMakefile* makefile = nullptr); |
| bool IsRegularExpressionValid() const |
| return this->RegularExpression.is_valid(); |
| bool IsReplaceExpressionValid() const |
| return this->ValidReplaceExpression; |
| bool Replace(const std::string& input, std::string& output); |
| const std::string& GetError() { return this->ErrorString; } |
| RegexReplacement(const char* s) |
| RegexReplacement(std::string s) |
| RegexReplacement() = default; |
| void ParseReplaceExpression(); |
| cmsys::RegularExpression RegularExpression; |
| bool ValidReplaceExpression = true; |
| std::string ReplaceExpression; |
| std::vector<RegexReplacement> Replacements; |
| cmMakefile* Makefile = nullptr; |