Lines Matching defs:pos
53 auto pos = str.rfind(sep);
54 if (pos == std::string_view::npos) {
57 str.remove_suffix(str.size() - pos);
99 auto pos = result.rfind('/');
100 if (pos == std::string_view::npos) {
104 return std::string{ result.substr(pos + 1) };
303 auto pos = syspath.rfind('/');
304 if (pos == std::string::npos) {
307 sysname = syspath.substr(pos + 1);
319 auto pos = line.find('=');
320 if (pos == std::string::npos) {
323 std::string key = line.substr(0, pos);
325 SetDevnode(line.substr(pos + 1));
328 AddProperty(std::move(key), line.substr(pos + 1));