Lines Matching refs:text
45 char *line_completion_function (const char *text, int matches, char *line_buffer,
101 readline_line_completion_function (const char *text, int matches) in readline_line_completion_function() argument
103 return line_completion_function (text, matches, rl_line_buffer, rl_point); in readline_line_completion_function()
109 noop_completer (char *text, char *prefix) in noop_completer() argument
116 filename_completer (char *text, char *word) in filename_completer() argument
132 p = rl_filename_completion_function (text, subsequent_name); in filename_completer()
157 if (word == text) in filename_completer()
160 else if (word > text) in filename_completer()
164 strcpy (q, p + (word - text)); in filename_completer()
171 q = xmalloc (strlen (p) + (text - word) + 5); in filename_completer()
172 strncpy (q, word, text - word); in filename_completer()
173 q[text - word] = '\0'; in filename_completer()
199 location_completer (char *text, char *word) in location_completer() argument
206 int quoted = *text == '\'' || *text == '"'; in location_completer()
210 char *symbol_start = text; in location_completer()
211 char *orig_text = text; in location_completer()
215 for (p = text; *p != '\0'; ++p) in location_completer()
239 else if (p < text + 3 && *p == ':' && p == text + 1 + quoted) in location_completer()
252 text++; in location_completer()
253 text_len = strlen (text); in location_completer()
260 file_to_match = (char *) xmalloc (colon - text + 1); in location_completer()
261 strncpy (file_to_match, text, colon - text + 1); in location_completer()
263 for (s = file_to_match + (colon - text); in location_completer()
283 if (strcspn (text, gdb_completer_file_name_break_characters) == text_len) in location_completer()
284 fn_list = make_source_files_completion_list (text, text); in location_completer()
322 memmove (fn_list[n_files], fn_list[n_files] + (word - text), in location_completer()
323 strlen (fn_list[n_files]) + 1 - (word - text)); in location_completer()
340 command_completer (char *text, char *word) in command_completer() argument
342 return complete_on_cmdlist (cmdlist, text, word); in command_completer()
379 complete_line (const char *text, char *line_buffer, int point) in complete_line() argument
406 word = tmp_command + point - strlen (text); in complete_line()
626 line_completion_function (const char *text, int matches, char *line_buffer, int point) in line_completion_function() argument
645 list = complete_line (text, line_buffer, point); in line_completion_function()