diff options
author | Jeff King <peff@peff.net> | 2014-05-22 05:30:14 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-05-27 09:59:21 -0700 |
commit | d4241f52d1a19bf464d63cbc4cd67fcc6a3af01d (patch) | |
tree | 470748d39f2a7747f0b892a38cf374c55b4b3e6f /Documentation/technical | |
parent | e31316263af98c4583be39b469f3152a23eba91d (diff) | |
download | git-d4241f52d1a19bf464d63cbc4cd67fcc6a3af01d.tar.gz git-d4241f52d1a19bf464d63cbc4cd67fcc6a3af01d.tar.xz |
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>
Diffstat (limited to 'Documentation/technical')
-rw-r--r-- | Documentation/technical/api-strbuf.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/technical/api-strbuf.txt b/Documentation/technical/api-strbuf.txt index 3350d97dd..9d28b034a 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 |