Home
last modified time | relevance | path

Searched refs:curpos (Results 1 – 1 of 1) sorted by relevance

/components/finsh/
A Dshell.c463 if (curpos <= 0) return 0; in find_prev_word_start()
466 while (--curpos > 0 && (line[curpos] == ' ' || line[curpos] == '\t')); in find_prev_word_start()
469 while (curpos > 0 && !(line[curpos] == ' ' || line[curpos] == '\t')) in find_prev_word_start()
470 curpos--; in find_prev_word_start()
472 return (curpos <= 0) ? 0 : curpos + 1; in find_prev_word_start()
477 if (curpos >= max) return max; in find_next_word_end()
480 while (curpos < max && (line[curpos] == ' ' || line[curpos] == '\t')) in find_next_word_end()
481 curpos++; in find_next_word_end()
484 while (curpos < max && !(line[curpos] == ' ' || line[curpos] == '\t')) in find_next_word_end()
485 curpos++; in find_next_word_end()
[all …]

Completed in 5 milliseconds