mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Rework string utils, more test cases
This commit is contained in:
parent
107a3acf95
commit
3a45be4cd8
8 changed files with 371 additions and 206 deletions
|
|
@ -430,10 +430,7 @@ Config::set(const std::string &key_,
|
|||
int
|
||||
Config::set(const std::string &kv_)
|
||||
{
|
||||
std::string key;
|
||||
std::string val;
|
||||
|
||||
str::splitkv(kv_,'=',&key,&val);
|
||||
auto [key, val] = str::splitkv(kv_,'=');
|
||||
key = str::trim(key);
|
||||
val = str::trim(val);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue