From d4241f52d1a19bf464d63cbc4cd67fcc6a3af01d Mon Sep 17 00:00:00 2001 From: Jeff King Date: Thu, 22 May 2014 05:30:14 -0400 Subject: strbuf: add strbuf_reencode helper This is a convenience wrapper around `reencode_string_len` and `strbuf_attach`. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- Documentation/technical/api-strbuf.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Documentation/technical') diff --git a/Documentation/technical/api-strbuf.txt b/Documentation/technical/api-strbuf.txt index 3350d97dda..9d28b034ad 100644 --- a/Documentation/technical/api-strbuf.txt +++ b/Documentation/technical/api-strbuf.txt @@ -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 -- cgit v1.2.1