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.
elemental function encode(self,codec)result(encoded)!< Return a string encoded accordingly the codec.!<!< @note Only BASE64 codec is currently available.!<!<```fortran!< type(string) :: astring!< astring = 'How are you?'!< print '(L1)', astring%encode(codec='base64')//''=='SG93IGFyZSB5b3U/'!<```!=> T <<<class(string),intent(in)::self!< The string.character(kind=CK,len=*),intent(in)::codec!< Encoding codec.type(string)::encoded!< Encoded string.if(allocated(self%raw))thenencoded=codecselect case(encoded%upper()//'')case('BASE64')call b64_encode(s=self%raw,code=encoded%raw)endselect endif endfunction encode