Lines Matching +full:cmd +full:- +full:cnt +full:- +full:name
3 /*-
18 * 3. Neither the name of the University nor the names of its contributors
64 const wchar_t *name; member
106 return -1; in el_wparse()
114 l = (size_t)(ptr - argv[0]); in el_wparse()
121 l = (size_t)el_match(el->el_prog, tprog); in el_wparse()
128 for (i = 0; cmds[i].name != NULL; i++) in el_wparse()
129 if (wcscmp(cmds[i].name, ptr) == 0) { in el_wparse()
131 return -i; in el_wparse()
133 return -1; in el_wparse()
139 * the appropriate character or -1 if the escape is not valid
150 return -1; in parse__escape()
186 return -1; in parse__escape()
191 return -1; in parse__escape()
193 c = (c << 4) | ((int)(h - hex)); in parse__escape()
195 --p; in parse__escape()
198 return -1; in parse__escape()
210 int cnt, ch; in parse__escape() local
212 for (cnt = 0, c = 0; cnt < 3; cnt++) { in parse__escape()
215 p--; in parse__escape()
218 c = (c << 3) | (ch - '0'); in parse__escape()
221 return -1; in parse__escape()
222 --p; in parse__escape()
255 if ((n = parse__escape(&in)) == -1) in parse__string()
261 if (in[1] == '-' && in[2] != '\0') { in parse__string()
277 * or -1 if one is not found
280 parse_cmd(EditLine *el, const wchar_t *cmd) in parse_cmd() argument
282 el_bindings_t *b = el->el_map.help; in parse_cmd()
285 for (i = 0; i < el->el_map.nfunc; i++) in parse_cmd()
286 if (wcscmp(b[i].name, cmd) == 0) in parse_cmd()
288 return -1; in parse_cmd()