Lines Matching refs:buf
346 smart_str_appendl(&ctx->buf, newdata, newlen); in xx_mainloop()
348 YYCURSOR = ctx->buf.c; in xx_mainloop()
349 YYLIMIT = ctx->buf.c + ctx->buf.len; in xx_mainloop()
900 …scdebug(("stopped in state %d at pos %d (%d:%c) %d\n", STATE, YYCURSOR - ctx->buf.c, *YYCURSOR, *Y… in xx_mainloop()
904 if (rest) memmove(ctx->buf.c, start, rest); in xx_mainloop()
905 ctx->buf.len = rest; in xx_mainloop()
911 smart_str buf = {0}; in php_url_scanner_adapt_single_url() local
920 append_modified_url(&surl, &buf, &url_app, PG(arg_separator).output); in php_url_scanner_adapt_single_url()
922 smart_str_0(&buf); in php_url_scanner_adapt_single_url()
923 if (newlen) *newlen = buf.len; in php_url_scanner_adapt_single_url()
927 return buf.c; in php_url_scanner_adapt_single_url()
946 smart_str_appendl(&ctx->result, ctx->buf.c, ctx->buf.len); in url_adapt_ext()
947 *newlen += ctx->buf.len; in url_adapt_ext()
948 smart_str_free(&ctx->buf); in url_adapt_ext()
974 smart_str_free(&ctx->buf); in php_url_scanner_ex_deactivate()
994 if (ctx->buf.len) { in php_url_scanner_output_handler()
995 smart_str_appendl(&ctx->result, ctx->buf.c, ctx->buf.len); in php_url_scanner_output_handler()
999 *handled_output_len = ctx->buf.len + output_len; in php_url_scanner_output_handler()
1003 smart_str_free(&ctx->buf); in php_url_scanner_output_handler()