Merge branch 'bg/strbuf-trim'

* bg/strbuf-trim:
  api-strbuf.txt: add docs for _trim and _ltrim
  strbuf: use _rtrim and _ltrim in strbuf_trim
This commit is contained in:
Junio C Hamano
2014-06-03 12:06:46 -07:00
2 changed files with 11 additions and 9 deletions

View File

@ -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