4 bool isstringprefix(const std::string
& full
, const std::string
& prefix
)
6 if(prefix
.length() > full
.length())
8 for(size_t i
= 0; i
< prefix
.length(); i
++)
9 if(full
[i
] != prefix
[i
])
14 std::string
settingvalue(const std::string
& setting
)
17 std::string _setting
= setting
;
18 x
= _setting
.find_first_of("=");
19 if(x
> _setting
.length())
20 throw std::runtime_error("Invalid setting syntax");
22 return _setting
.substr(x
+ 1);