SCL.SimpleDataTypes.STRING Class Reference

Detailed Description

The string data type has as its domain sequences of characters. The characters which are
permitted to form part of a string value are defined in ISO 10646.
Syntax:
293 string_type = STRING [ width_spec ] .
318 width_spec = '(' width ')' [ FIXED ] .
317 width = numeric_expression .
A string data type may be defined as either fixed or varying width (number of characters). If
it is not specfically defined as fixed width (by using the fixed reserved word in the dfinition)
the string has varying width.

The domain of a fixed width string data type is the set of all character sequences of exactly
the width specified in the type definition.
The domain of a varying width string data type is the set of all character sequences of width
less than or equal to the maximum width specified in the type definition.
If no width is specified, the domain is the set of all character sequences, with no constraint on
the width of these sequences.
Substrings and individual characters may be addressed using subscripts as described in 12.5.
The case (upper or lower) of letters within a string is significant.

Python mapping: INTEGER is mapped the 'str' type. An additional width_spec parameter can be passed
to handle the FIXED length constraint

The documentation for this class was generated from the following file: