Rev 11220 | Rev 14711 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 11220 | Rev 11292 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | alias:position, positions |
4 | alias:position, positions |
5 | syntax:!positionof [ |
5 | syntax:!positionof [``type''] ``s'' in ``string'' |
6 |
|
6 | mean:Reports the positions of the object ``s'' in ``string''. <br/>\ |
7 |
|
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\ |
8 | <span class="tt">line</span>. If it is specified, then the comparison only takes place for\ |
9 | corresponding objects of |
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\ |
10 | The output of the command is a list of positions (char, word, item or\ |
11 | line, according to the value of |
11 | line, according to the value of ``type'') where ``s'' is found in ``string''. <br/>\ |
12 |
|
12 | If ``type'' is missing, then ``s'' is searched in ``string'' as a substring,\ |
13 | and the positions reported are character positions. |
13 | and the positions reported are character positions. |