[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Question about .substring
From: |
Ulrich Lauther |
Subject: |
Re: [Groff] Question about .substring |
Date: |
Wed, 19 Nov 2014 18:44:27 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Wed, Nov 19, 2014 at 05:24:22PM +0000, Ralph Corderoy wrote:
> Hi Steffen,
>
> > > > Replace the string named xx with the substring defined by
> > > > the indices n1 and n2.
> The full documentation of .substring wasn't originally given.
>
> -- Request: .substring str n1 [n2]
> Replace the string named STR with the substring defined by the
> indices N1 and N2. The first character in the string has index 0.
> If N2 is omitted, it is taken to be equal to the string's length.
shouldn't that be "it is taken to be equal to the string's length - 1" ?
(As we count from zero.)
ulrich
- Re: [Groff] Question about .substring, (continued)
- Re: [Groff] Question about .substring, Ingo Schwarze, 2014/11/20
- Re: [Groff] Question about .substring, Ralph Corderoy, 2014/11/20
- Re: [Groff] Question about .substring, Tadziu Hoffmann, 2014/11/20
- Re: [Groff] Question about .substring, Ralph Corderoy, 2014/11/20
- Re: [Groff] Question about .substring, Tadziu Hoffmann, 2014/11/20
- Re: [Groff] Question about .substring, Steffen Nurpmeso, 2014/11/28
- Re: [Groff] Question about .substring, Steffen Nurpmeso, 2014/11/22
- Re: [Groff] Question about .substring, Carsten Kunze, 2014/11/20
- [Groff] .fl (was: Question about .substring), Carsten Kunze, 2014/11/20
- Re: [Groff] Question about .substring, Ralph Corderoy, 2014/11/19
- Re: [Groff] Question about .substring,
Ulrich Lauther <=
- Re: [Groff] Question about .substring, Ralph Corderoy, 2014/11/20