Rev 11220 | Rev 14711 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
32 | reyssat | 1 | !! +exec+ +var+ +string+ |
11210 | bpr | 2 | tit:positionof |
3 | type:$type_both |
||
11220 | bpr | 4 | alias:position, positions |
11292 | bpr | 5 | syntax:!positionof [``type''] ``s'' in ``string'' |
6 | mean:Reports the positions of the object ``s'' in ``string''. <br/>\ |
||
7 | ``type'' can be <span class="tt">char</span>, <span class="tt">word</span>, <span class="tt">item</span> or\ |
||
11210 | bpr | 8 | <span class="tt">line</span>. If it is specified, then the comparison only takes place for\ |
11292 | bpr | 9 | corresponding objects of ``string'' which are identical to ``s''. <br/>\ |
11210 | bpr | 10 | The output of the command is a list of positions (char, word, item or\ |
11292 | bpr | 11 | line, according to the value of ``type'') where ``s'' is found in ``string''. <br/>\ |
12 | If ``type'' is missing, then ``s'' is searched in ``string'' as a substring,\ |
||
11210 | bpr | 13 | and the positions reported are character positions. |