#include "git-compat-util.h"
#include "path.h"
#include "quote.h"
#include "strbuf.h"
#include "strvec.h"
int quote_path_fully = …;
static inline int need_bs_quote(char c)
{ … }
void sq_quote_buf(struct strbuf *dst, const char *src)
{ … }
void sq_quote_buf_pretty(struct strbuf *dst, const char *src)
{ … }
void sq_quotef(struct strbuf *dst, const char *fmt, ...)
{ … }
void sq_quote_argv(struct strbuf *dst, const char **argv)
{ … }
void sq_quote_argv_pretty(struct strbuf *dst, const char **argv)
{ … }
void sq_append_quote_argv_pretty(struct strbuf *dst, const char **argv)
{ … }
char *sq_dequote_step(char *arg, char **next)
{ … }
char *sq_dequote(char *arg)
{ … }
static int sq_dequote_to_argv_internal(char *arg,
const char ***argv, int *nr, int *alloc,
struct strvec *array)
{ … }
int sq_dequote_to_argv(char *arg, const char ***argv, int *nr, int *alloc)
{ … }
int sq_dequote_to_strvec(char *arg, struct strvec *array)
{ … }
#define X8(x) …
#define X16(x) …
static signed char const cq_lookup[256] = …;
static inline int cq_must_quote(char c)
{ … }
static size_t next_quote_pos(const char *s, ssize_t maxlen)
{ … }
static size_t quote_c_style_counted(const char *name, ssize_t maxlen,
struct strbuf *sb, FILE *fp, unsigned flags)
{ … }
size_t quote_c_style(const char *name, struct strbuf *sb, FILE *fp, unsigned flags)
{ … }
void quote_two_c_style(struct strbuf *sb, const char *prefix, const char *path,
unsigned flags)
{ … }
void write_name_quoted(const char *name, FILE *fp, int terminator)
{ … }
void write_name_quoted_relative(const char *name, const char *prefix,
FILE *fp, int terminator)
{ … }
char *quote_path(const char *in, const char *prefix, struct strbuf *out, unsigned flags)
{ … }
int unquote_c_style(struct strbuf *sb, const char *quoted, const char **endp)
{ … }
void perl_quote_buf(struct strbuf *sb, const char *src)
{ … }
void perl_quote_buf_with_len(struct strbuf *sb, const char *src, size_t len)
{ … }
void python_quote_buf(struct strbuf *sb, const char *src)
{ … }
void tcl_quote_buf(struct strbuf *sb, const char *src)
{ … }
void basic_regex_quote_buf(struct strbuf *sb, const char *src)
{ … }