Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | TestString1 | |||
character(len=*), | intent(in) | :: | TestString2 |
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.
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.
LOGICAL FUNCTION DOSameString(TestString1,TestString2)
! FUNCTION INFORMATION:
! AUTHOR Linda K. Lawrie
! DATE WRITTEN November 1997
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This function returns true if the two strings are equal (case insensitively)
! METHODOLOGY EMPLOYED:
! Make both strings uppercase. Do internal compare.
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: TestString1 ! First String to Test
CHARACTER(len=*), INTENT(IN) :: TestString2 ! Second String to Test
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
! na
IF (LEN_TRIM(TestString1) /= LEN_TRIM(TestString2)) THEN
DOSameString=.false.
ELSEIF (TestString1 == TestString2) THEN
DOSameString=.true.
ELSE
DOSameString=DOMakeUPPERCase(TestString1) == DOMakeUPPERCase(TestString2)
ENDIF
RETURN
END FUNCTION DOSameString