Lines Matching +defs:string +defs:match

99 /* A search string which is used to find the first @setfilename. */
869 /* Return the next token as a string pointer. We cons the string. This
923 /* Clear whitespace from the front and end of string. */
925 canon_white (char *string)
927 char *p = string;
945 if (p != string)
946 memmove (string, p, len);
948 string[len] = 0;
953 fix_whitespace (char *string)
955 char *temp = xmalloc (strlen (string) + 1);
960 canon_white (string);
962 while (string[string_index])
964 c = temp[temp_index++] = string[string_index++];
969 while ((c = string[string_index]) && (c == ' ' ||
976 strcpy (string, temp);
980 /* Discard text until the desired string is found. The string is
983 discard_until (char *string)
985 int temp = search_forward (string, input_text_offset);
987 int tt = (temp < 0) ? input_text_length : temp + strlen (string);
997 /* not found, move current position to end of string */
999 if (strcmp (string, "\n") != 0)
1005 if (executing_string && strstr (string, end_block))
1009 line_error (_("Expected `%s'"), string);
1015 /* found, move current position to after the found string */
1016 input_text_offset = temp + strlen (string);
1021 On exit input_text_offset is after the match string.
1022 Return the offset where the string starts. */
1024 get_until (char *match, char **string)
1029 new_point = search_forward (match, input_text_offset);
1036 tem = new_point + (strlen (match) - 1);
1041 *string = xmalloc (len + 1);
1043 memcpy (*string, &input_text[current_point], len);
1044 (*string)[len] = 0;
1075 /* Get original string from input. */
1094 has the same length as the original string. */
1133 get_until_in_line (int expand, char *match, char **string)
1160 get_until (match, string);
1165 get_rest_of_line (int expand, char **string)
1177 *string = expansion (tem, 0);
1181 get_until_in_line (0, "\n", string);
1183 canon_white (*string);
1209 get_until_in_braces (char *match, char **string)
1213 int match_len = strlen (match);
1236 (brace == 0 && strncmp (input_text + i, match, match_len) == 0))
1245 *string = temp;
1515 /* Search this file looking for the special string which starts conversion.
1794 Local Variables section (as a malloc-ed string) so that Emacs'
1885 char *string;
1917 string = expansion (tem, 0);
1918 add_anchor_name (string, 1);
1920 free (string);
1924 get_until_in_line (1, ":", &string);
1926 execute_string ("%s", string); /* get escaping done */
1927 free (string);
1935 get_until_in_line (0, ".", &string);
1936 free (string);
1972 get_command_entry (char *string)
1977 if (strcmp (command_table[i].name, string) == 0)
1984 (strcmp (user_command_array[i]->name, string) == 0))
2078 won't match anything. */
2380 /* Return the string which invokes PROC; a pointer to a function.
2486 add_word (char *string)
2488 while (*string)
2489 add_char (*string++);
2496 add_html_elt (char *string)
2499 add_word (string);
2508 add_html_block_elt (char *string)
2511 add_word (string);
2847 /* Insert the null-terminated string STRING into `output_paragraph'. */
2849 insert_string (const char *string)
2851 while (*string)
2852 insert (*string++);
3196 search_forward (char *string, int from)
3198 int len = strlen (string);
3202 if (strncmp (input_text + from, string, len) == 0)
3211 search_forward_until_pos (char *string, int from, int end_pos)
3216 from = search_forward (string, from);
3607 if ARG1 and ARG2 caselessly string compare to the same string, otherwise,
3636 get updated, causing name to be empty string. So just return. */
3878 char *string; /* The string buffer. */
3880 int in_use; /* Nonzero means string currently in use. */
3920 es->string = NULL;
3926 es->string = xrealloc (es->string, initial_size);
3944 execution_strings[i]->string == *text)
3946 /* Don't ever shrink the string storage in execution_strings[]!
3949 not true. So we only enlarge the string storage if the
3953 execution_strings[i]->string =
3968 /* Execute the string produced by formatting the ARGs with FORMAT. This
3987 temp_string = es->string;
4162 set_paragraph_indent (char *string)
4164 if (strcmp (string, "asis") == 0 || strcmp (string, _("asis")) == 0)
4166 else if (strcmp (string, "none") == 0 || strcmp (string, _("none")) == 0)
4170 if (sscanf (string, "%d", &paragraph_start_indent) != 1)