Rev 14711 | 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'' |
14711 | bpr | 6 | mean:Reports the positions of the object ``s'' in ``string''.\ |
7 | The word ``type'' can be <span class="tt">char</span>, <span class="tt">word</span>, \ |
||
8 | <span class="tt">item</span>, <span class="tt">line</span> or <span class="tt">row</span>.\ |
||
9 | If it is specified, then the comparison only takes place for\ |
||
10 | corresponding objects of ``string'' which are identical to ``s''. \ |
||
11 | The output of the command is a list of positions (char, word, item,\ |
||
12 | line or row, according to the value of ``type'') where ``s'' is found in ``string''.\ |
||
13 | Here, rows are separated by semi-colon ``;'' and lines by new lines.\ |
||
17228 | bpr | 14 | <br>\ |
11292 | bpr | 15 | If ``type'' is missing, then ``s'' is searched in ``string'' as a substring,\ |
14711 | bpr | 16 | and the positions reported are character positions (more precisely, \ |
17 | the positions of the previous character of ``s'' in ``string'').\ |