From 09104ce531f2ff2b941592b161bbb10f28b90c09 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Sat, 30 Nov 2013 00:45:55 -0600 Subject: [PATCH] Document ltrimstr and rtrimstr --- docs/content/3.manual/manual.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/content/3.manual/manual.yml b/docs/content/3.manual/manual.yml index 469ccd79..d114d31e 100644 --- a/docs/content/3.manual/manual.yml +++ b/docs/content/3.manual/manual.yml @@ -853,6 +853,28 @@ sections: input: '["foobar", "barfoo"]' output: ['[false, true, true, false, false]'] + - title: `ltrimstr` + body: | + + Outputs its input with the given prefix string removed, if it + starts with it. + + examples: + - program: '[.[]|ltrimstr("foo")]' + input: ["fo", "foo", "barfoo", "foobar", "afoo"] + output: ['["fo","","barfoo","bar","afoo"]'] + + - title: `rtrimstr` + body: | + + Outputs its input with the given suffix string removed, if it + starts with it. + + examples: + - program: '[.[]|rtrimstr("foo")]' + input: ["fo", "foo", "barfoo", "foobar", "foob"] + output: ['["fo","","bar","foobar","foob"]'] + - title: `explode` body: |