Rework config, centralize fuse config (#1547)
Some checks are pending
CodeQL / Analyze (push) Waiting to run
mkdocs / deploy (push) Waiting to run

This commit is contained in:
trapexit 2025-10-24 08:20:29 -05:00 • committed by GitHub
parent 00e5467e99
commit 727c522fb8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
46 changed files with 1294 additions and 1316 deletions

View file

@ -16,6 +16,7 @@
#include "str.hpp"
#include <algorithm>
#include <cassert>
#include <cstring>
#include <set>
@ -331,3 +332,18 @@ str::startswith(const char *s_,
return true;
}
std::string
str::replace(const std::string &s_,
const char src_,
const char dst_)
{
std::string s(s_);
std::replace(s.begin(),
s.end(),
src_,
dst_);
return s;
}