Lines Matching refs:cmdKey
282 static void OsCompleteStr(char *result, const char *target, char *cmdKey, unsigned int *len)
285 char *des = cmdKey + *len;
337 static int OsTabMatchFile(char *cmdKey, unsigned int *len)
352 if (OsStrSeparate(cmdKey, dirOpen, strCmp, *len)) {
360 OsCompleteStr(strOutput, strCmp, cmdKey, len);
381 * Input: cmdKey : Pass in the buff string, which is ready to be operated
383 * size : cmdKey length
385 unsigned int OsCmdKeyShift(const char *cmdKey, char *cmdOut, unsigned int size)
393 if ((cmdKey == NULL) || (cmdOut == NULL)) {
397 len = strlen(cmdKey);
398 if ((*cmdKey == '\n') || (len >= size)) {
409 /* Scan each character in 'cmdKey',and squeeze the overmuch space and ignore invalid character */
410 for (; *cmdKey != '\0'; cmdKey++) {
412 if (*(cmdKey) == '\"') {
420 if ((*cmdKey == ' ') && ((*(cmdKey + 1) == ' ') || (*(cmdKey + 1) == '\0')) && QUOTES_STATUS_CLOSE(quotes)) {
423 if (*cmdKey == '\'') {
426 *output = *cmdKey;
451 int OsTabCompletion(char *cmdKey, unsigned int *len)
455 if ((cmdKey == NULL) || (len == NULL)) {
459 count = OsTabMatchFile(cmdKey, len);