Lines Matching refs:buf
331 replace name by replacement at the beginning of buf of bufsize.
335 static char *substitute(char *buf,
340 int lbuf = strlen(buf),
347 /* buf must starts with name */
348 ap_assert(!strncmp(buf, name, lname));
356 buf, name, replacement, do_esc, shift, lbuf, lrepl, lsubs));
365 memmove(buf + lname + shift, buf + lname, lbuf - lname + 1);
371 buf[j++] = DELIM;
374 buf[j++] = ESCAPE;
375 buf[j] = replacement[i];
378 buf[j++] = DELIM;
384 find first occurence of args in buf.
388 static char *next_substitution(const char *buf,
396 char *found = ap_strstr((char *) buf, tab[i]);
410 substitute macro arguments by replacements in buf of bufsize.
415 char *buf,
421 char *ptr = buf,
429 debug(fprintf(stderr, "1# %s", buf));
432 const char *errmsg = substitute(ptr, buf - ptr + bufsize,
443 debug(fprintf(stderr, "2# %s", buf));
609 returns a buf a la fgets.
613 static apr_status_t array_getstr(void *buf, size_t bufsize, void *param)
616 char *buffer = (char *) buf;
634 return ml->next->getstr(buf, bufsize, ml->next->param);