SPL to HP C/XL Migration Guide (30231-90001)
5- 24
|| |
|4.
byte-ref rel-op
(
value-group
[,...] | 4.
(No direct equivalent;
|
|
||
| [, stack-decr
]|
convert to format
3
)
|
|| |
| 5a.
byte-variable
= ALPHA | 5a. isalpha (
byte-variable
)|
|| |
| 5b.
byte-variable
<> ALPHA | 5b. !isalpha (
byte-variable
)|
|| |
| 5c.
byte-variable
= NUMERIC | 5c. isdigit (
byte-variable
)|
|| |
| 5d.
byte-variable
<> NUMERIC | 5d. !isdigit (
byte-variable
)|
|| |
| 5e.
byte-variable
= SPECIAL | 5e. !isalnum (
byte-variable
)|
|| |
| 5f.
byte-variable
<> SPECIAL | 5f. isalnum (
byte-variable
)|
|| |
---------------------------------------------------------------------------------------------
|| |
|
byte-reference
:|
byte-reference
:|
|| |
| a1.
array/pointer-id
| a1.
array/pointer-id
|
|| |
| a2.
array/pointer-id
(
index
) | a2. &
array/pointer-id "
[
" index "
]
"
|
|| |
|b.* |b.
(No equivalent;
|
|
||
|
|
stack reference requires recoding)
|
|| |
| | The str... functions expect addresses of |
| | the strings; hence, the "&" in the indexed |
| | format. Note that
array/pointer-id
alone |
||
is
an address (of cell zero). |
|| |
---------------------------------------------------------------------------------------------
|| |
|
count
: | The equivalent syntaxes work left-to-right |
| is the number of characters to compare. | only. An alternate user-defined function, |
|If
count
is negative, the comparison is | BYTECMP, that handles both cases is shown |
| right-to-left. | below. |
|| |
---------------------------------------------------------------------------------------------
|| |
|
stack-decr
: | The equivalent syntaxes above work only for |
| is the number of items to remove from the | a decrement of 3. The functionality of |
| stack. The default value is 3. | other values is provided in the |
| | user-defined function BYTECMP, shown below. |
|| |
---------------------------------------------------------------------------------------------
|| |
|
value-group
: | This element and its surrounding |
| is a numerically defined byte string. | parentheses must be converted to an HP C/XL |
| | character string. |
|| |
---------------------------------------------------------------------------------------------
|| |
|
byte-variable
| Same as SPL. The is... functions expect a |
| is a reference to a single byte, either | character value. |
| as an array or pointer cell reference or | |
| as a simple byte variable. | |
|| |
---------------------------------------------------------------------------------------------
Here are five examples of the basic forms of byte comparison: