Nodes of different colours represent the following:
Solid arrows point from a parent (sub)module to the submodule which is descended from it. Dashed arrows point from a module being used to the module or program unit using it. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
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 ReplaceBlanksWithUnderscores(InputString) RESULT (ResultString)
! FUNCTION INFORMATION:
! AUTHOR Robert J. Hitchcock
! DATE WRITTEN August 2003
! MODIFIED From MakeUPPERCase function by Linda K. Lawrie
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This function returns a representation of the InputString with blanks replaced with underscores.
! METHODOLOGY EMPLOYED:
! Uses the Intrinsic SCAN function to scan for Blank characters
! and replaces any found with underscore characters.
! REFERENCES:
! na
! USE STATEMENTS:
USE DataGlobals, ONLY: MaxNameLength
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: InputString ! Input String
CHARACTER(len=MaxNameLength) ResultString ! Result String
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
INTEGER Count ! Loop Counter
INTEGER Pos ! Position in String representation
INTEGER LengthInputString ! Length (trimmed) of InputString
ResultString=' '
Pos=SCAN(InputString,' ')
IF (POS /= 0) THEN
LengthInputString=LEN_TRIM(InputString)
DO Count=1,LengthInputString
Pos=SCAN(' ',InputString(Count:Count))
IF (Pos /= 0) THEN
ResultString(Count:Count)='_'
ELSE
ResultString(Count:Count)=InputString(Count:Count)
ENDIF
END DO
ResultString=TRIM(ResultString)
ELSE
! String has no Blanks
ResultString=TRIM(InputString)
ENDIF
RETURN
END FUNCTION ReplaceBlanksWithUnderscores