strbuf: add strbuf_reencode helper
This is a convenience wrapper around `reencode_string_len` and `strbuf_attach`. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
e31316263a
commit
d4241f52d1
1
strbuf.h
1
strbuf.h
@ -45,6 +45,7 @@ static inline void strbuf_setlen(struct strbuf *sb, size_t len)
|
||||
extern void strbuf_trim(struct strbuf *);
|
||||
extern void strbuf_rtrim(struct strbuf *);
|
||||
extern void strbuf_ltrim(struct strbuf *);
|
||||
extern int strbuf_reencode(struct strbuf *sb, const char *from, const char *to);
|
||||
extern int strbuf_cmp(const struct strbuf *, const struct strbuf *);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user