initial commit

This commit is contained in:
2026-06-09 00:22:22 -05:00
commit c84de3418b
25 changed files with 3501 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#pragma once
#include <regex.h>
#include <string>
#include <vector>
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<regmatch_t> &groups);
};
} // namespace sedpp