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.
Source Code
elemental function upper(self)!< Return a string with all uppercase characters.!<!<```fortran!< type(string) :: astring!< logical :: test_passed(1)!< astring = 'Hello WorLD!'!< test_passed(1) = astring%upper()//''=='HELLO WORLD!'!< print '(L1)', all(test_passed)!<```!=> T <<<class(string),intent(in)::self!< The string.type(string)::upper!< Upper case string.integer::n1!< Characters counter.integer::n2!< Characters counter.if(allocated(self%raw))thenupper=selfdo n1=1,len(self%raw)n2=index(LOWER_ALPHABET,self%raw(n1:n1))if(n2>0)upper%raw(n1:n1)=UPPER_ALPHABET(n2:n2)enddo endif endfunction upper