Lines Matching refs:args
27 bool ParsePermissionsLine(std::vector<std::string>&& args, std::string* err,
31 if (is_sysfs && args.size() != 5) {
36 if (!is_sysfs && args.size() != 4) {
41 auto it = args.begin();
47 // args is now common to both sys and dev entries and contains: <perm> <uid> <gid>
80 bool SubsystemParser::ParseSection(std::vector<std::string>&& args, const std::string& filename,
82 if (args.size() != 2) {
87 if (std::find(subsystems_->begin(), subsystems_->end(), args[1]) != subsystems_->end()) {
92 subsystem_.name_ = args[1];
97 bool SubsystemParser::ParseDevName(std::vector<std::string>&& args, std::string* err) {
98 if (args[1] == "uevent_devname") {
102 if (args[1] == "uevent_devpath") {
107 *err = "invalid devname '" + args[1] + "'";
111 bool SubsystemParser::ParseDirName(std::vector<std::string>&& args, std::string* err) {
112 if (args[1].front() != '/') {
113 *err = "dirname '" + args[1] + " ' does not start with '/'";
117 subsystem_.dir_name_ = args[1];
121 bool SubsystemParser::ParseLineSection(std::vector<std::string>&& args, int line, std::string* err) {
123 bool (SubsystemParser::*)(std::vector<std::string> && args, std::string * err);
137 auto parser = parser_map.FindFunction(args, err);
143 return (this->*parser)(std::move(args), err);