[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Question about .substring
From: |
Steffen Nurpmeso |
Subject: |
Re: [Groff] Question about .substring |
Date: |
Wed, 19 Nov 2014 18:09:08 +0100 |
User-agent: |
s-nail v14.7.8-72-gb9e3dff |
Hallo all :),
Ingo Schwarze <address@hidden> wrote:
|Tadziu Hoffmann wrote on Wed, Nov 19, 2014 at 05:20:54PM +0100:
|> Steffen Nurpmeso wrote:
|> [snip]
|
|> Where do you see a bug?
|>
|> man 7 groff:
|>
|> .substring xx n1 n2
|> Replace the string named xx with the substring defined by
|> the indices n1 and n2.
|
|The wording could be improved. As it stands, it is not clear
|whether the character at index n2 is the last character included
|or the first character not included.
|
|Maybe:
|
| Replace the string named xx with its substring beginning with
| the zero-based index n1 and ending with index n2, inclusively.
Inclusive index n2 of the _resulting substring_, please.
For S-roff i will add a .substr request which takes an index and
a length. (Just like perl(1), if length is negative, "leaves that
many characters off the end of the string".)
--steffen
- [Groff] Question about .substring, Steffen Nurpmeso, 2014/11/19
- Re: [Groff] Question about .substring, Tadziu Hoffmann, 2014/11/19
- Re: [Groff] Question about .substring, Steffen Nurpmeso, 2014/11/19
- Re: [Groff] Question about .substring, Ingo Schwarze, 2014/11/19
- Re: [Groff] Question about .substring,
Steffen Nurpmeso <=
- Re: [Groff] Question about .substring, Ingo Schwarze, 2014/11/19
- Re: [Groff] Question about .substring, Ralph Corderoy, 2014/11/19
- Re: [Groff] Question about .substring, Steffen Nurpmeso, 2014/11/20
- 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, Ralph Corderoy, 2014/11/29