Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 10f5b03

Browse files
modocachegitster
authored andcommitted
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: Brian Gesiak <[email protected]> Reviewed-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3bb55e8 commit 10f5b03

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Documentation/technical/api-strbuf.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,19 @@ Functions
121121

122122
* Related to the contents of the buffer
123123

124+
`strbuf_trim`::
125+
126+
Strip whitespace from the beginning and end of a string.
127+
Equivalent to performing `strbuf_rtrim()` followed by `strbuf_ltrim()`.
128+
124129
`strbuf_rtrim`::
125130

126131
Strip whitespace from the end of a string.
127132

133+
`strbuf_ltrim`::
134+
135+
Strip whitespace from the beginning of a string.
136+
128137
`strbuf_cmp`::
129138

130139
Compare two buffers. Returns an integer less than, equal to, or greater

0 commit comments

Comments
 (0)