Lines Matching refs:str

111 char *history_arg_extract(int start, int end, const char *str);
529 _rl_compat_sub(const char *str, const char *what, const char *with, in _rl_compat_sub() argument
536 len = strlen(str); in _rl_compat_sub()
541 s = str; in _rl_compat_sub()
554 s = str; in _rl_compat_sub()
592 return ev.str; in get_history_event()
682 rptr = ev.str; in get_history_event()
835 char str[4]; in _history_expand_command() local
841 str[0] = str[1] = '!'; in _history_expand_command()
842 str[2] = '0'; in _history_expand_command()
843 ptr = get_history_event(str, &idx, 0); in _history_expand_command()
992 history_expand(char *str, char **output) in history_expand() argument
1002 *output = strdup(str); in history_expand()
1007 if (str[0] == history_subst_char) { in history_expand()
1009 *output = el_calloc(strlen(str) + 4 + 1, sizeof(**output)); in history_expand()
1015 (void)strcpy((*output) + 4, str); in history_expand()
1016 str = *output; in history_expand()
1018 *output = strdup(str); in history_expand()
1042 for (i = 0; str[i];) { in history_expand()
1050 for (; str[j]; j++) { in history_expand()
1051 if (str[j] == '\\' && in history_expand()
1052 str[j + 1] == history_expansion_char) { in history_expand()
1053 len = strlen(&str[j + 1]) + 1; in history_expand()
1054 memmove(&str[j], &str[j + 1], len); in history_expand()
1058 if (isspace((unsigned char) str[j]) in history_expand()
1059 || str[j] == qchar) in history_expand()
1062 if (str[j] == history_expansion_char in history_expand()
1063 && !strchr(history_no_expand_chars, str[j + 1]) in history_expand()
1065 (*history_inhibit_expansion_function)(str, in history_expand()
1070 if (str[j] && loop_again) { in history_expand()
1072 qchar = (j > 0 && str[j - 1] == '"' )? '"':0; in history_expand()
1074 if (str[j] == history_expansion_char) in history_expand()
1080 ADD_STRING(&str[start], len, NULL); in history_expand()
1082 if (str[i] == '\0' || str[i] != history_expansion_char) { 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()
1124 history_arg_extract(int start, int end, const char *str) in history_arg_extract() argument
1129 arr = history_tokenize(str); in history_arg_extract()
1180 history_tokenize(const char *str) in history_tokenize() argument
1186 for (i = 0; str[i];) { in history_tokenize()
1187 while (isspace((unsigned char) str[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()
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()
1224 (void)strlcpy(temp, &str[start], len + 1); in history_tokenize()
1227 if (str[i]) in history_tokenize()
1519 she.line = ev.str; in history_get()
1578 he->line = ev.str; in remove_history()
1615 he->line = ev.str; in replace_history_entry()
1683 _history_list[i].line = ev.str; in history_list()
1703 rl_he.line = ev.str; in current_history()
1726 size += strlen(ev.str) * sizeof(*ev.str); in history_total_bytes()
1793 history_search(const char *str, int direction) in history_search() argument
1804 if ((strp = strstr(ev.str, str)) != NULL) in history_search()
1805 return (int)(strp - ev.str); in history_search()
1818 history_search_prefix(const char *str, int direction) in history_search_prefix() argument
1823 H_PREV_STR : H_NEXT_STR, str)); in history_search_prefix()
1833 history_search_pos(const char *str, in history_search_pos() argument
1850 if (strstr(ev.str, str)) in history_search_pos()
2396 rl_completion_matches(const char *str, rl_compentry_func_t *fun) in rl_completion_matches() argument
2406 while ((match = (*fun)(str, (int)(len - 1))) != NULL) { in rl_completion_matches()
2434 if (min == 0 && *str) { in rl_completion_matches()
2435 if ((list[0] = strdup(str)) == NULL) in rl_completion_matches()