Rev 5921 | Rev 11223 | 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 | !if $numlist_type=record |
1 | !if $numlist_type=record |
2 | !set |
2 | !set numlist_str=`fname' |
3 | !else |
3 | !else |
4 | !set |
4 | !set numlist_str=`string' |
5 | !endif |
5 | !endif |
- | 6 | !if $numlist_type=char |
|
- | 7 | !set numlist_type=character |
|
6 | 8 | !endif |
|
7 |
|
9 | `numlist' can be a single integer, a comma-separated list of |
8 | integers, or a range of integers. |
10 | integers, or a range of integers. |
9 | <br/> |
11 | <br/> |
10 | A positive integer denotes the number of $numlist_type in $numlist_str |
12 | A positive integer denotes the number of $numlist_type in $numlist_str |
11 | counted from the beginning, |
13 | counted from the beginning, |
12 | with |
14 | with `1' corresponding to the first |
13 | $numlist_type. A negative integer denotes the number of $numlist_type from |
15 | $numlist_type. A negative integer denotes the number of $numlist_type from |
14 | the end of $numlist_str: |
16 | the end of $numlist_str: `-1' |
15 | means the last $numlist_type, |
17 | means the last $numlist_type, `-2' means |
16 | the next-to-last $numlist_type, etc. <p> |
18 | the next-to-last $numlist_type, etc. <p> |
17 | The syntax for a range of integers is |
19 | The syntax for a range of integers is |
18 | <span class="tt"> |
20 | <span class="tt">`n1' to`n2'</span> |
19 | For example, <span class="tt"> |
21 | For example, <span class="tt">`2 to -2'</span> |
20 | means the whole $numlist_str except the first |
22 | means the whole $numlist_str except the first |
21 | and the last $(numlist_type)s. |
23 | and the last $(numlist_type)s. |
22 | </p> |
24 | </p> |