aboutsummaryrefslogtreecommitdiff
path: root/strbuf.h
diff options
context:
space:
mode:
authorLukas Sandström <lukass@etek.chalmers.se>2008-07-13 20:29:18 +0200
committerJunio C Hamano <gitster@pobox.com>2008-07-13 14:04:04 -0700
commiteacd6dc59411964cc025ba8a9897faa1fb1e6bc6 (patch)
treed20e50a6e266668d7a99e4fe965f3a377f6db392 /strbuf.h
parent9b200fd68c799868c5c1383ef3eb34de7027f467 (diff)
downloadgit-eacd6dc59411964cc025ba8a9897faa1fb1e6bc6.tar.gz
git-eacd6dc59411964cc025ba8a9897faa1fb1e6bc6.tar.xz
Add some useful functions for strbuf manipulation.
Signed-off-by: Lukas Sandström <lukass@etek.chalmers.se> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'strbuf.h')
-rw-r--r--strbuf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/strbuf.h b/strbuf.h
index a1b01430e..0c6ffad53 100644
--- a/strbuf.h
+++ b/strbuf.h
@@ -77,8 +77,14 @@ static inline void strbuf_setlen(struct strbuf *sb, size_t len) {
#define strbuf_reset(sb) strbuf_setlen(sb, 0)
/*----- content related -----*/
+extern void strbuf_trim(struct strbuf *);
extern void strbuf_rtrim(struct strbuf *);
+extern void strbuf_ltrim(struct strbuf *);
extern int strbuf_cmp(const struct strbuf *, const struct strbuf *);
+extern void strbuf_tolower(struct strbuf *);
+
+extern struct strbuf **strbuf_split(const struct strbuf *, int delim);
+extern void strbuf_list_free(struct strbuf **);
/*----- add data in your buffer -----*/
static inline void strbuf_addch(struct strbuf *sb, int c) {