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/api-strbuf.txt | |
| parent | http: optionally extract charset parameter from content-type (diff) | |
| download | git-d4241f52d1a19bf464d63cbc4cd67fcc6a3af01d.tar.gz git-d4241f52d1a19bf464d63cbc4cd67fcc6a3af01d.zip | |
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/api-strbuf.txt')
| -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 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 |
