Lines Matching refs:i
216 int i; in _getc_function() local
218 i = (*rl_getc_function)(rl_instream); in _getc_function()
219 if (i == -1) in _getc_function()
221 *c = (wchar_t)i; in _getc_function()
995 size_t idx, i, size; in history_expand() local
1042 for (i = 0; str[i];) { in history_expand()
1048 start = j = i; in history_expand()
1071 i = j; in history_expand()
1079 len = i - start; in history_expand()
1082 if (str[i] == '\0' || str[i] != history_expansion_char) { in history_expand()
1083 len = j - i; in history_expand()
1084 ADD_STRING(&str[i], len, NULL); in history_expand()
1091 ret = _history_expand_command (str, i, (j - i), &tmp); in history_expand()
1100 i = j; in history_expand()
1126 size_t i, len, max; in history_arg_extract() local
1152 for (i = (size_t)start, len = 0; i <= (size_t)end; i++) in history_arg_extract()
1153 len += strlen(arr[i]) + 1; in history_arg_extract()
1159 for (i = (size_t)start, len = 0; i <= (size_t)end; i++) { in history_arg_extract()
1160 (void)strcpy(result + len, arr[i]); in history_arg_extract()
1161 len += strlen(arr[i]); in history_arg_extract()
1162 if (i < (size_t)end) in history_arg_extract()
1168 for (i = 0; arr[i]; i++) in history_arg_extract()
1169 el_free(arr[i]); in history_arg_extract()
1182 int size = 1, idx = 0, i, start; in history_tokenize() local
1186 for (i = 0; str[i];) { in history_tokenize()
1187 while (isspace((unsigned char) str[i])) in history_tokenize()
1188 i++; in history_tokenize()
1189 start = i; in history_tokenize()
1190 for (; str[i];) { in history_tokenize()
1191 if (str[i] == '\\') { in history_tokenize()
1192 if (str[i+1] != '\0') in history_tokenize()
1193 i++; in history_tokenize()
1194 } else if (str[i] == delim) in history_tokenize()
1197 (isspace((unsigned char) str[i]) || in history_tokenize()
1198 strchr("()<>;&|$", str[i]))) in history_tokenize()
1200 else if (!delim && strchr("'`\"", str[i])) in history_tokenize()
1201 delim = str[i]; in history_tokenize()
1202 if (str[i]) in history_tokenize()
1203 i++; in history_tokenize()
1216 len = (size_t)i - (size_t)start; in history_tokenize()
1219 for (i = 0; i < idx; i++) in history_tokenize()
1220 el_free(result[i]); in history_tokenize()
1227 if (str[i]) in history_tokenize()
1228 i++; in history_tokenize()
1665 int i; in history_list() local
1680 i = 0; in history_list()
1682 _history_listp[i] = &_history_list[i]; in history_list()
1683 _history_list[i].line = ev.str; in history_list()
1684 _history_list[i].data = NULL; in history_list()
1685 if (i++ == history_length) in history_list()
1688 _history_listp[i] = NULL; in history_list()
2398 size_t len, max, i, j, min; in rl_completion_matches() local
2427 for (i = 1, a = list[i]; i < len - 1; i++, a = b) { in rl_completion_matches()
2428 b = list[i + 1]; in rl_completion_matches()