提交 10f5b034 编写于 作者: B Brian Gesiak 提交者: Junio C Hamano

api-strbuf.txt: add docs for _trim and _ltrim

API documentation for strbuf does not document strbuf_trim() or
strbuf_ltrim(). Add documentation for these two functions.
Signed-off-by: NBrian Gesiak <modocache@gmail.com>
Reviewed-by: NJeff King <peff@peff.net>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 3bb55e8a
......@@ -121,10 +121,19 @@ Functions
* Related to the contents of the buffer
`strbuf_trim`::
Strip whitespace from the beginning and end of a string.
Equivalent to performing `strbuf_rtrim()` followed by `strbuf_ltrim()`.
`strbuf_rtrim`::
Strip whitespace from the end of a string.
`strbuf_ltrim`::
Strip whitespace from the beginning of a string.
`strbuf_cmp`::
Compare two buffers. Returns an integer less than, equal to, or greater
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册