Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | InputString |
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
FUNCTION MakeUPPERCase(InputString) RESULT (ResultString)
! FUNCTION INFORMATION:
! AUTHOR Linda K. Lawrie
! DATE WRITTEN September 1997
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This function returns the Upper Case representation of the InputString.
! METHODOLOGY EMPLOYED:
! Uses the Intrinsic SCAN function to scan the lowercase representation of
! characters (DataStringGlobals) for each character in the given string.
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: InputString ! Input String
CHARACTER(len=len(InputString)) ResultString ! Result String, string is limited to
! MaxInputLineLength because of PowerStation Compiler
! otherwise could say (CHARACTER(len=LEN(InputString))
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
INTEGER i ! Loop Counter
INTEGER :: CurCharVal
ResultString=InputString
do i = 1, LEN_TRIM(InputString)
curCharVal = ICHAR(InputString(i:i))
SELECT CASE (curCharVal)
CASE (97:122,224:255) !lowercase ASCII and accented characters
ResultString(i:i) = CHAR(curCharVal-32)
CASE DEFAULT
END SELECT
end do
RETURN
END FUNCTION MakeUPPERCase