Rev 11223 | Rev 11428 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 11223 | Rev 11292 | ||
---|---|---|---|
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 |
6 | !if $numlist_type=char |
7 | !set numlist_type=character |
7 | !set numlist_type=character |
8 | !endif |
8 | !endif |
9 | 9 | ||
10 |
|
10 | ``numlist'' can be a single integer, a comma-separated list of |
11 | integers, or a range of integers. |
11 | integers, or a range of integers. |
12 | <br/> |
12 | <br/> |
13 | A positive integer denotes the number of $numlist_type in $numlist_str |
13 | A positive integer denotes the number of $numlist_type in $numlist_str |
14 | counted from the beginning, |
14 | counted from the beginning, |
15 | with |
15 | with ``1'' corresponding to the first |
16 | $numlist_type. A negative integer denotes the number of $numlist_type from |
16 | $numlist_type. A negative integer denotes the number of $numlist_type from |
17 | the end of $numlist_str: |
17 | the end of $numlist_str: ``-1'' |
18 | means the last $numlist_type, |
18 | means the last $numlist_type, ``-2'' means |
19 | the next-to-last $numlist_type, etc. <p> |
19 | the next-to-last $numlist_type, etc. <p> |
20 | The syntax for a range of integers is |
20 | The syntax for a range of integers is |
21 |
|
21 | ``n1 to n2'' |
22 | For example, |
22 | For example, ``2 to -2'' |
23 | means the whole $numlist_str except the first |
23 | means the whole $numlist_str except the first |
24 | and the last $(numlist_type)s. |
24 | and the last $(numlist_type)s. |
25 | </p> |
25 | </p> |