Lines Matching +defs:string +defs:match
29 #include <string.h>
41 /* Maximum number of string expansions per line, to break infinite loops. */
56 * An incredibly-simple string buffer.
964 n->string = roff_strdup(man->roff, word);
978 mandoc_asprintf(&newstr, "%s %s", n->string, addstr);
980 free(n->string);
981 n->string = newstr;
1099 free(n->string);
1179 if (n->string == NULL) {
1187 for (cp = n->string; *cp != '\0'; cp++) {
1235 const char *start; /* start of the string to process */
1238 char *ep; /* end of comment string */
1324 n->string = mandoc_strdup(stesc + 2);
1356 const char *res; /* the string to be pasted */
1370 int rsz; /* length of the rest of the string */
1596 * to end position (exclusive) with the repl(acement) string.
2179 * At the beginning of a `de' macro, clear the existing string
2499 * Evaluate a string comparison condition.
2501 * Succeed if the string up to its second occurrence
2502 * matches the string up to its third occurrence.
2510 int match;
2512 match = 0;
2514 s2 = s1 + 1; /* for scanning the first string */
2515 s3 = strchr(s2, *s1); /* for scanning the second string */
2526 match = 1;
2538 return match;
2543 * or string condition.
2750 char *string;
2762 * The first word is the name of the string.
2767 name = string = buf->buf + pos;
2771 namesz = roff_getname(&string, ln, pos);
2776 string = buf->buf + pos + namesz;
2783 if (*string == '"')
2784 string++;
2787 roff_setstrn(&r->strtab, name, namesz, string, strlen(string),
3502 if (roff_evalnum(ln, r->man->last->string, &npos,
3623 * If the replacement string contains a font escape sequence,
4091 * Store *string into the user-defined string called *name.
4098 roff_setstr(struct roff *r, const char *name, const char *string,
4104 roff_setstrn(&r->strtab, name, namesz, string,
4105 string ? strlen(string) : 0, append);
4111 const char *string, size_t stringsz, int append)
4118 /* Search for an existing string with the same name. */
4126 /* Create a new string table entry. */
4140 if (NULL == string)
4168 if ('\\' == string[i] && '\\' == string[i + 1])
4170 *c++ = string[i++];
4265 /* Using an undefined string defines it to be empty. */
4291 * Duplicate an input string, making the appropriate character
4293 * Returns a heap-allocated string with all the replacements made.
4314 * and the string is >0 length.
4342 * A match has been found.
4343 * Append the match to the array and move
4358 * Make sure to pass along the bogus string.