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:
Jeff King
2014-05-22 05:30:14 -04:00
committed by Junio C Hamano
parent e31316263a
commit d4241f52d1
3 changed files with 23 additions and 0 deletions

View File

@ -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