gm2-libs/StrCase (The GNU Modula-2 Compiler)

#### 4.1.43 gm2-libs/StrCase ¶

    DEFINITION MODULE StrCase ;

    EXPORT QUALIFIED StrToUpperCase, StrToLowerCase, Cap, Lower ;

    (*
       StrToUpperCase - converts string, a, to uppercase returning the
                        result in, b.
    *)

    PROCEDURE StrToUpperCase (a: ARRAY OF CHAR ; VAR b: ARRAY OF CHAR) ;

    (*
       StrToLowerCase - converts string, a, to lowercase returning the
                        result in, b.
    *)

    PROCEDURE StrToLowerCase (a: ARRAY OF CHAR ; VAR b: ARRAY OF CHAR) ;

    (*
       Cap - converts a lower case character into a capital character.
             If the character is not a lower case character 'a'..'z'
             then the character is simply returned unaltered.
    *)

    PROCEDURE Cap (ch: CHAR) : CHAR ;

    (*
       Lower - converts an upper case character into a lower case character.
               If the character is not an upper case character 'A'..'Z'
               then the character is simply returned unaltered.
    *)

    PROCEDURE Lower (ch: CHAR) : CHAR ;

    END StrCase.