Rev 5921 | Rev 11220 | 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 |
||
4 | alias:!position, !positions |
||
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\ |
||
8 | <span class="tt">line</span>. If it is specified, then the comparison only takes place for\ |
||
9 | corresponding objects of `string' which are identical to `s'. <br/>\ |
||
10 | The output of the command is a list of positions (char, word, item or\ |
||
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,\ |
||
13 | and the positions reported are character positions. |