groff
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]