Lines Matching defs:text

45 char *line_completion_function (const char *text, int matches, char *line_buffer,
102 readline_line_completion_function (const char *text, int matches)
104 return line_completion_function (text, matches, rl_line_buffer, rl_point);
110 noop_completer (char *text, char *prefix)
117 filename_completer (char *text, char *word)
133 p = rl_filename_completion_function (text, subsequent_name);
158 if (word == text)
161 else if (word > text)
165 strcpy (q, p + (word - text));
172 q = xmalloc (strlen (p) + (text - word) + 5);
173 strncpy (q, word, text - word);
174 q[text - word] = '\0';
200 location_completer (char *text, char *word)
207 int quoted = *text == '\'' || *text == '"';
211 char *symbol_start = text;
212 char *orig_text = text;
216 for (p = text; *p != '\0'; ++p)
234 break; /* hit the end of text */
240 else if (p < text + 3 && *p == ':' && p == text + 1 + quoted)
253 text++;
254 text_len = strlen (text);
261 file_to_match = (char *) xmalloc (colon - text + 1);
262 strncpy (file_to_match, text, colon - text + 1);
264 for (s = file_to_match + (colon - text);
270 /* If the text includes a colon, they want completion only on a
282 /* If text includes characters which cannot appear in a file
284 if (strcspn (text, gdb_completer_file_name_break_characters) == text_len)
285 fn_list = make_source_files_completion_list (text, text);
323 memmove (fn_list[n_files], fn_list[n_files] + (word - text),
324 strlen (fn_list[n_files]) + 1 - (word - text));
332 on the entire text as a symbol. */
341 command_completer (char *text, char *word)
343 return complete_on_cmdlist (cmdlist, text, word);
375 LINE_BUFFER is available to be looked at; it contains the entire text
380 complete_line (const char *text, char *line_buffer, int point)
384 /* Pointer within tmp_command which corresponds to text. */
404 /* Since text always contains some number of characters leading up
407 word = tmp_command + point - strlen (text);
508 to complete the entire text after the
618 LINE_BUFFER is available to be looked at; it contains the entire text
627 line_completion_function (const char *text, int matches, char *line_buffer, int point)
646 list = complete_line (text, line_buffer, point);