Add more ed commands.
This commit is contained in:
@@ -25,8 +25,9 @@ struct Shard {
|
||||
static void retain(Shard *n);
|
||||
static void release(Shard *n);
|
||||
|
||||
static Shard *from_file(std::filesystem::path path, OriginalBuffer *b, bool posix_ending);
|
||||
static std::vector<Shard *> from_swap(std::filesystem::path path, OriginalBuffer *b);
|
||||
static Shard *from_file(std::filesystem::path &path, OriginalBuffer *b, bool posix_ending);
|
||||
static Shard *from_command(const char *cmd, OriginalBuffer *o, bool posix_ending);
|
||||
static std::vector<Shard *> from_swap(std::filesystem::path &path, OriginalBuffer *b);
|
||||
|
||||
static std::pair<Shard *, Shard *> split(Shard *n, uint64_t offset);
|
||||
static Shard *concat(Shard *left, Shard *right);
|
||||
|
||||
@@ -56,7 +56,13 @@ struct Vase {
|
||||
std::filesystem::path swapdir;
|
||||
|
||||
Vase(std::filesystem::path path, std::filesystem::path swapdir);
|
||||
Vase(std::string cmd, std::filesystem::path swapdir);
|
||||
Vase(std::filesystem::path swapdir);
|
||||
~Vase();
|
||||
Vase(Vase &&other) noexcept;
|
||||
Vase &operator=(Vase &&other) noexcept;
|
||||
Vase(const Vase &) = delete;
|
||||
Vase &operator=(const Vase &) = delete;
|
||||
|
||||
uint64_t length();
|
||||
uint64_t lines();
|
||||
|
||||
Reference in New Issue
Block a user