10 for (
int i = 0; i < args.
argCount(); i++) {
11 std::string arg = args.
arg(i);
12 size_t pos = arg.find(
"=");
15 if (pos == std::string::npos) {
27 for (
int i = 1; i < args.
argCount(); i++) {
28 std::string arg = args.
arg(i);
29 size_t pos = arg.find(name);
30 codelog(COMMAND__ERROR,
"cmd_parse_eq_arg: %d name '%s' arg '%s' pos: '%d'",
31 i, name, arg.c_str(), pos);
32 if (pos == std::string::npos) {
35 if (strlen(name) >= arg.size()) {
38 codelog(COMMAND__ERROR,
" returning: '%s'", arg.c_str() + strlen(name));
39 return std::string(arg.c_str() + strlen(name));
const std::string & arg(size_t index) const
std::string cmd_parse_eq_arg(const Seperator &args, const char *name)
Separates string to arguments.
#define codelog(type, fmt,...)
int cmd_find_nth_noneq(const Seperator &args, int n)