Seed7 - The extensible programming language
Seed7 FAQ Manual Screenshots Examples Libraries Algorithms Download Links
Libraries AES ARC4 Array ASN.1 Bigfile Bigint Bigrat Bin32 Bin64 Bitdata Bitmapfont Bitset Bitsetof Boolean Browser Bstring Bytedata Cards Category CC config Cgi Cgi dialog Char Charsets Cipher Clib_file Color CLI Commands Complex Console Crc32 Deflate DES Dialog Dir Draw Duration Echo Editline Enable_input Enable_io Enable_output Encoding Environment External_file File File system Float Font Forloop Ftp Getf Gethttp Gethttps Graph Graph_file Gzip Hash Hashsetof Hmac Html_ent Httpserv Idxarray Image Inflate Inflate file Inifile Integer Keybd Line Listener LZW Make Math Msgdigest Null_file Osfiles Picture utility Pixmap_file Pixmapfont PKCS #1 Poll Process Progs Propertyfile Rational Reference Ref_list Scanfile Scanstri Set Shell Smtp Sockbase Socket SQL base Stdio Strifile String Stritext Subrange Tar Text Time TLS/SSL Triple DES Unicode Utf16 Utf8 Vectorfont 3D Vector Window Wrinum X.509 Xmldom Xml_ent Zip
Libraries
Category Source Code
 previous   up   next 

Types
category
Describes the category of a reference.

category

const type: category

Describes the category of a reference.


Operator Summary
boolean
(in category: cat1) = (in category: cat2)
Check if two category values are equal.
boolean
(in category: cat1) <> (in category: cat2)
Check if two category values are not equal.
category
(attr category) conv (in integer: number)
Convert an integer number to category.
category
(attr category) parse (in string: catName)
Convert a string to a category.

Function Summary
integer
ord (in category: aCategory)
Determine the ordinal number of a category.
string
str (in category: aCategory)
Convert a category to a string.

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 - When there is no corresponding category.

Function Detail

ord

const func integer: ord (in category: aCategory)

Determine the ordinal number of a category.

Returns:
a small integer which corresponds to aCategory.

str

const func string: str (in category: aCategory)

Convert a category to a string.

Parameters:
aCategory - Category to be converted.
Returns:
the string result of the conversion.
Raises:
MEMORY_ERROR - Not enough memory to represent the result.


 previous   up   next