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 strip(self,remove_nulls)!< Return a copy of the string with the leading and trailing characters removed.!<!< @note Multiple subsequent separators are collapsed to one occurence.!<!<```fortran!< type(string) :: astring!< logical :: test_passed(1)!< astring = ' Hello World! '!< test_passed(1) = astring%strip()//''=='Hello World!'!< print '(L1)', all(test_passed)!<```!=> T <<<class(string),intent(in)::self!< The string.logical,intent(in),optional::remove_nulls!< Remove null characters at the end.type(string)::strip!< The stripped string.integer::c!< Counter.if(allocated(self%raw))thenstrip=self%adjustl()strip=strip%trim()if(present(remove_nulls))then if(remove_nulls)thenc=index(self%raw,char(0))if(c>0)strip%raw=strip%raw(1:c-1)endif endif endif endfunction strip