use skip_prefix to avoid magic numbers
[gitweb.git] / Documentation / technical / api-strbuf.txt
index 8480f8902d96b55727b99e9bac9dc738f12c12ca..077a7096a4ba3c47a0cbc8981abdde1b7b35d924 100644 (file)
@@ -121,10 +121,24 @@ 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_reencode`::
+
+       Replace the contents of the strbuf with a reencoded form.  Returns -1
+       on error, 0 on success.
+
 `strbuf_tolower`::
 
        Lowercase each character in the buffer using `tolower`.