B Classified List of Routines

 B.1 Change case
 B.2 Compare strings
 B.3 Decode Fortran data types
 B.4 Edit strings
 B.5 Encode Fortran data types
 B.6 Enquire
 B.7 Facilitate Portability
 B.8 Search strings

The classifications are in alphabetical order as follows:

Change case
– Change the case of a character string.
Compare strings
– Compare two character strings.
Decode Fortran data types
– Convert a character string into a Fortran data type and return its value.
Editing strings
– Edit character strings by replacing, adding or removing defined substrings.
Encode Fortran data types
– Convert a Fortran data type into a character string representation of its value.
Enquire
– Return information about a character string.
Facilitate portability
– Tools for assisting portability, especially to or from non-ASCII environments.
Search strings
– Search a character string.

B.1 Change case

CHR_LCASE
– Convert a string to lower case.
CHR_LOWER
– Return the lower case equivalent of a character.
CHR_UCASE
– Convert a string to upper case.
CHR_UPPER
– Return the upper-case equivalent of a character.

B.2 Compare strings

CHR_ABBRV
– Return whether two strings are equal apart from case, permitting abbreviation.
CHR_SCOMP
– Compare two character strings using the ASCII character set.
CHR_SIMLR
– Return whether two strings are equal, apart from case.
CHR_WILD
– Return whether a string matches a wild-card pattern.

B.3 Decode Fortran data types

CHR_BTOI
– Read an INTEGER value from a binary string.
CHR_CTOC
– Write a CHARACTER string into another string.
CHR_CTOD
– Read a DOUBLE PRECISION value from a string.
CHR_CTOI
– Read an INTEGER value from a string.
CHR_CTOL
– Read a LOGICAL value from a string.
CHR_CTOR
– Read a REAL value from a string.
CHR_HTOI
– Read an INTEGER value from a hexadecimal string.
CHR_OTOI
– Read an integer from an octal string.

B.4 Edit strings

CHR_APPND
– Copy one string into another, ignoring trailing blanks.
CHR_CLEAN
– Remove all unprintable characters from a string.
CHR_COPY
– Copy one string into another, checking for truncation.
CHR_DCWRD
– Split a string into its component words.
CHR_FILL
– Fill a string with a given character.
CHR_LDBLK
– Remove any leading blanks from a string.
CHR_LINBR
– Break a line of text into a sequence of shorter lines.
CHR_PFORM
– Reformat a paragraph to a new width.
CHR_PREFX
– Prefix a string with a substring.
CHR_RJUST
– Right-justify a string.
CHR_RMBLK
– Remove all blanks from a string.
CHR_RMCHR
– Remove all specified characters from a string.
CHR_SORT
– Sort an array of character strings into alphabetical order.
CHR_SWAP
– Swap two single-character variables.
CHR_TERM
– Terminate a string by padding out with blanks.
CHR_TRCHR
– Translate the specified characters in a string.
CHR_TRUNC
– Truncate a string at a given delimiter.

B.5 Encode Fortran data types

CHR_DTOAN
– Write a DOUBLE PRECISION value into a string as hr/deg:min:sec.
CHR_DTOC
– Write a DOUBLE PRECISION value into a string.
CHR_ITOB
– Write an INTEGER value as a binary string.
CHR_ITOC
– Write an INTEGER value as a decimal string.
CHR_ITOH
– Write an INTEGER value as a hexadecimal string.
CHR_ITOO
– Write an INTEGER value as an octal string.
CHR_LTOC
– Write a LOGICAL value into a string.
CHR_PUTC
– Put a CHARACTER string into another at a given position.
CHR_PUTD
– Put a DOUBLE PRECISION value into a string at a given position.
CHR_PUTI
– Put an INTEGER value into a string at a given position.
CHR_PUTL
– Put a LOGICAL value into a string at a given position.
CHR_PUTR
– Put a REAL value into a string at a given position.
CHR_RTOAN
– Write a REAL value into a string as hr/deg:min:sec.
CHR_RTOC
– Write a REAL value into a string.

B.6 Enquire

CHR_NTH
– Return the two-character abbreviation for a specified integer.
CHR_INSET
– Return whether a string is a member of a given set.
CHR_ISALF
– Return whether a character is alphabetic.
CHR_ISALM
– Return whether a character is alphanumeric.
CHR_ISDIG
– Return whether a character is a digit.
CHR_ISNAM
– Return whether a string is a valid name.
CHR_LEN
– Return the length of a string, ignoring trailing blanks.

B.7 Facilitate Portability

CHR_ACHR
– Return the character for a given ASCII value.
CHR_ATOK
– Return the character for a given ASCII character token.
CHR_ATOM
– Translate a string from ASCII to the machine’s character set.
CHR_ETOM
– Translate a string from EBCDIC to machine’s character set.
CHR_IACHR
– Return the ASCII value for a given character.
CHR_MTOA
– Translate a string from machine’s character set to ASCII.
CHR_MTOE
– Translate a string from machine’s character set to EBCDIC.

B.8 Search strings

CHR_DELIM
– Locate a substring using a given delimiter character.
CHR_FANDL
– Find the first and last non-blank characters in a string.
CHR_FIND
– Find the next occurrence of a given substring within a string.
CHR_FIWE
– Find the next end-of-word within a string.
CHR_FIWS
– Find the start of the next word within a string.
CHR_FPARX
– Find a parenthesised expression in a character string.
CHR_LASTO
– Find the last occurrence of character in a string.
CHR_SKCHR
– Skip over all specified characters in a string.
CHR_TOCHR
– Skip to the next specified character in a string.