Lines Matching refs:cmdParsed
73 unsigned int OsCmdParseOneToken(CmdParsed *cmdParsed, unsigned int index, const char *token) in OsCmdParseOneToken() argument
78 if (cmdParsed == NULL) { in OsCmdParseOneToken()
83 if (cmdParsed->cmdType != CMD_TYPE_STD) { in OsCmdParseOneToken()
88 if ((token != NULL) && (cmdParsed->paramCnt < CMD_MAX_PARAS)) { in OsCmdParseOneToken()
89 tempLen = cmdParsed->paramCnt; in OsCmdParseOneToken()
90 ret = OsCmdParseParaGet(&(cmdParsed->paramArray[tempLen]), token); in OsCmdParseOneToken()
94 cmdParsed->paramCnt++; in OsCmdParseOneToken()
99 unsigned int OsCmdTokenSplit(char *cmdStr, char split, CmdParsed *cmdParsed) in OsCmdTokenSplit() argument
125 ret = OsCmdParseOneToken(cmdParsed, count++, token); in OsCmdTokenSplit()
141 ret = OsCmdParseOneToken(cmdParsed, count, token); in OsCmdTokenSplit()
147 unsigned int OsCmdParse(char *cmdStr, CmdParsed *cmdParsed) in OsCmdParse() argument
149 if ((cmdStr == NULL) || (cmdParsed == NULL) || (strlen(cmdStr) == 0)) { in OsCmdParse()
152 return OsCmdTokenSplit(cmdStr, ' ', cmdParsed); in OsCmdParse()