Rev 5921 | Rev 11220 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5921 | Rev 11210 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | !! +exec+ +var+ +string+ |
1 | !! +exec+ +var+ +string+ |
- | 2 | tit:positionof |
|
2 |
|
3 | type:$type_both |
3 |
|
4 | alias:!position, !positions |
4 |
|
5 | syntax:!positionof [`type'] `s' in `string' |
5 | string$emphend</span> |
- | |
6 |
|
6 | mean:Reports the positions of the object `s' in `string'. <br/>\ |
7 | $emph string$emphend. <br/> |
- | |
8 |
|
7 | `type' can be <span class="tt">char</span>, <span class="tt">word</span>, <span class="tt">item</span> or\ |
9 | <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\ |
10 | corresponding objects of |
9 | corresponding objects of `string' which are identical to `s'. <br/>\ |
11 | $emph s$emphend. <br/> |
- | |
12 | The output of the command is a list of positions (char, word, item |
10 | The output of the command is a list of positions (char, word, item or\ |
13 | line, according to the value of |
11 | line, according to the value of `type') where `s' is found in `string'. <br/>\ |
14 | is found in $emph string$emphend. <br/> |
- | |
15 |
|
12 | If `type' is missing, then `s' is searched in `string' as a substring,\ |
16 |
|
13 | and the positions reported are character positions. |
17 | character positions. |
- |