mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
use references to srcmounts rather than copies
This commit is contained in:
parent
f7c37d2974
commit
6086620e23
49 changed files with 1050 additions and 717 deletions
10
src/str.cpp
10
src/str.cpp
|
|
@ -28,7 +28,7 @@ namespace str
|
|||
{
|
||||
void
|
||||
split(vector<string> &result,
|
||||
const string &str,
|
||||
const char *str,
|
||||
const char delimiter)
|
||||
{
|
||||
string part;
|
||||
|
|
@ -38,6 +38,14 @@ namespace str
|
|||
result.push_back(part);
|
||||
}
|
||||
|
||||
void
|
||||
split(vector<string> &result,
|
||||
const string &str,
|
||||
const char delimiter)
|
||||
{
|
||||
return split(result,str.c_str(),delimiter);
|
||||
}
|
||||
|
||||
string
|
||||
join(const vector<string> &vec,
|
||||
const size_t substridx,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue