Rework string utils, more test cases

This commit is contained in:
Antonio SJ Musumeci 2026-03-11 19:15:11 -05:00 • committed by trapexit
parent 107a3acf95
commit 3a45be4cd8
8 changed files with 371 additions and 206 deletions

View file

@ -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);