Lines Matching refs:dst
20 static void sq_quote_buf(struct strbuf *dst, const char *src) in sq_quote_buf() argument
24 if (dst->buf == src) in sq_quote_buf()
25 to_free = strbuf_detach(dst, NULL); in sq_quote_buf()
27 strbuf_addch(dst, '\''); in sq_quote_buf()
30 strbuf_add(dst, src, len); in sq_quote_buf()
33 strbuf_addstr(dst, "'\\"); in sq_quote_buf()
34 strbuf_addch(dst, *src++); in sq_quote_buf()
35 strbuf_addch(dst, '\''); in sq_quote_buf()
38 strbuf_addch(dst, '\''); in sq_quote_buf()
42 void sq_quote_argv(struct strbuf *dst, const char** argv, size_t maxlen) in sq_quote_argv() argument
47 strbuf_grow(dst, 255); in sq_quote_argv()
49 strbuf_addch(dst, ' '); in sq_quote_argv()
50 sq_quote_buf(dst, argv[i]); in sq_quote_argv()
51 if (maxlen && dst->len > maxlen) in sq_quote_argv()