Rev 4562 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
32 | reyssat | 1 | !! +exec+ +var+ +string+ |
2 | $lst_tit positionof$lst_titend$type_both |
||
3 | $lst_alias position, positions<br> |
||
4 | $(lst_syntax)positionof [$(emph)type$emphend] $emph s $emphend in $emph |
||
5 | string$emphend</tt> <br> |
||
6 | $lst_mean Reports the positions of the object $emph s $emphend in |
||
7 | $emph string$emphend. <br> |
||
8 | $emph type$emphend can be <tt>char</tt>, <tt>word</tt>, <tt>item</tt> or |
||
9 | <tt>line</tt>. If it is specified, then the comparison only takes place for |
||
10 | corresponding objects of $emph string$emphend which are identical to |
||
11 | $emph s$emphend. <br> |
||
12 | The output of the command is a list of positions (char, word, item or |
||
13 | line, according to the value of $emph type$emphend) where $emph s$emphend |
||
14 | is found in $emph string$emphend. <br> |
||
15 | If $emph type$emphend is missing, then $emph s$emphend is searched in |
||
16 | $emph string $emphend as a substring, and the positions reported are |
||
17 | character positions. |
||
18 | |||
19 | |||
20 |