mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Rework config, centralize fuse config (#1547)
This commit is contained in:
parent
00e5467e99
commit
727c522fb8
46 changed files with 1294 additions and 1316 deletions
16
src/str.cpp
16
src/str.cpp
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue