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
@ -125,6 +125,11 @@ Functions
|
||||
|
||||
Strip whitespace from the end of a string.
|
||||
|
||||
`strbuf_reencode`::
|
||||
|
||||
Replace the contents of the strbuf with a reencoded form. Returns -1
|
||||
on error, 0 on success.
|
||||
|
||||
`strbuf_cmp`::
|
||||
|
||||
Compare two buffers. Returns an integer less than, equal to, or greater
|
||||
|
||||
Reference in New Issue
Block a user