#pragma once #include #include #include namespace sedpp { // Expands an s-command replacement. Besides &, \1...\9, and literal escapes, // GNU sed supports case-conversion state such as \U...\E and one-byte \u/\l. class Replacement { public: static std::string expand(const std::string &replacement, const std::string &subject, const std::vector &groups); }; } // namespace sedpp