STRING


Function

String contains procedures for manipulating character strings.

Dependencies

Module Variables
DEFINITIONS DP, LINE_LENGTH
STATUS ERROR


Public Variables

None.

Public Procedures

There are four public functions and a single public subroutine in this module.

Function Type Purpose
DECODE_INTEGER Integer Decode an integer from a string.
DECODE_LOGICAL Logical Decode a logical from a string.
DECODE_REAL Real Decode a real number from a string.
TO_UPPER_CASE Character Convert the alphabetic characters in a string to upper case.


SubroutinePurpose
ENCODE_INTEGER Convert an integer into a string.


DECODE_INTEGER

Argument Type Intent Optional Purpose
STRING Character In No The string from which the integer is to be decoded.


Error Meaning
I/O Error. There has been an error either because the integer is too long or because the string does not encode a valid integer.




DECODE_LOGICAL

Argument Type Intent Optional Purpose
STRING Character In No The string from which the logical is to be decoded.


Error Meaning
Unable to decode string to a logical. The string does not encode a valid logical.




DECODE_REAL

Argument Type Intent Optional Purpose
STRING Character In No The string from which the real is to be decoded.


Error Meaning
I/O Error. There has been an error either because the real number is too long or because the string does not encode a valid real number.




TO_UPPER_CASE

Argument Type Intent Optional Purpose
STRING Character In No The string whose characters are to be converted to upper case.




ENCODE_INTEGER

Argument Type Intent Optional Purpose
NUMBER Integer In No The integer to be encoded.
STRING Character Out No The string containing the encoded integer.
FORMAT Character In Yes The encoding format to use.


Error Meaning
String is too short to hold the encoded integer. The variable STRING is too short to hold the integer.




Stability

Stable.



Back to the DYNAMO Home-Page.