Scrubber Functions
Note
All classes and symbols listed here are in the ApprovalTests
namespace.
Scrubbers
For more information, see Scrubbers.
-
namespace Scrubbers
Regex-based scrubbers
See Regular Expressions (regex) in the User Guide on GitHub.
-
using RegexMatch = std::sub_match<std::string::const_iterator>
-
using RegexReplacer = std::function<std::string(const RegexMatch&)>
-
std::string scrubRegex(const std::string &input, const std::regex ®ex, const RegexReplacer &replaceFunction)
-
Scrubber createRegexScrubber(const std::regex ®exPattern, const RegexReplacer &replacer)
-
Scrubber createRegexScrubber(const std::regex ®exPattern, const std::string &replacementText)
-
Scrubber createRegexScrubber(const std::string ®exString, const std::string &replacementText)
-
using RegexMatch = std::sub_match<std::string::const_iterator>