Libraries |
|
Category | Source Code |
|
|
Types | ||||
|
Operator Summary | |||||
category |
| ||||
boolean |
| ||||
boolean |
| ||||
category |
| ||||
category |
|
Function Summary | |||||
category |
| ||||
integer |
| ||||
integer |
| ||||
integer |
| ||||
category |
| ||||
string |
| ||||
void |
| ||||
void |
|
Operator Detail |
=
const func boolean: (in category: cat1) = (in category: cat2)
-
Check if two category values are equal.
- Returns:
- TRUE if both values are equal, FALSE otherwise.
<>
const func boolean: (in category: cat1) <> (in category: cat2)
-
Check if two category values are not equal.
- Returns:
- FALSE if both values are equal, TRUE otherwise.
conv
const func category: (attr category) conv (in integer: number)
-
Convert an integer number to category.
- Returns:
- the category result of the conversion.
parse
const func category: (attr category) parse (in string: catName)
-
Convert a string to a category.
- Parameters:
- catName - Name of a category to be converted.
- Returns:
- the category result fo the conversion.
- Raises:
- RANGE_ERROR - If there is no corresponding category.
Function Detail |
category
const func category: category (in string: catName)
-
Convert a string to a category.
- Parameters:
- catName - Name of a category to be converted.
- Returns:
- the category result fo the conversion.
- Raises:
- RANGE_ERROR - If there is no corresponding category.
compare
const func integer: compare (in category: cat1, in category: cat2)
-
Compare two categories.
- Returns:
- -1, 0 or 1 if the first argument is considered to be respectively less than, equal to, or greater than the second.
hashCode
const func integer: hashCode (in category: aCategory)
-
Compute the hash value of a category.
- Returns:
- the hash value.
ord
const func integer: ord (in category: aCategory)
-
Determine the ordinal number of a category.
- Returns:
- a small integer which corresponds to aCategory.
category
const func category: category (in integer: number)
-
Convert an integer number to category.
- Returns:
- the category result of the conversion.
str
const func string: str (in category: aCategory)
for
const proc: for (inout category: forVar) range (in category: startValue) to (in category: endValue) do (in proc: statements) end for
-
Category for-loop, looping from startValue upward to endValue. The variable forVar is initialized with startValue. The statements are executed repeatedly. After each repetition the variable forVar is incremented with forVar := category(succ(ord(forVar))). After the statements were executed with endValue the for-loop is terminated. If ord(startValue) is greater than ord(endValue) the statements are not executed at all.
for
const proc: for (inout category: forVar) range (in category: startValue) downto (in category: endValue) do (in proc: statements) end for
-
Category for-loop, looping from startValue downward to endValue. The variable forVar is initialized with startValue. The statements are executed repeatedly. After each repetition the variable forVar is decremented with forVar := category(pred(ord(forVar))). After the statements were executed with endValue the for-loop is terminated. If ord(startValue) is greater than ord(endValue) the statements are not executed at all.
|
|