str_ascii_default Function

private pure function str_ascii_default(input) result(output)

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(in) :: input

Return Value character(kind=ASCII,len=:),allocatable


Called by

proc~~str_ascii_default~5~~CalledByGraph proc~str_ascii_default~5 str_ascii_default interface~str_ascii~5 str_ascii interface~str_ascii~5->proc~str_ascii_default~5

Contents

Source Code


Source Code

   pure function str_ascii_default(input) result(output)
   !< Convert string of default kind to ASCII string.
   !<
   !<```fortran
   !< use penf
   !< character(len=:, kind=ASCII), allocatable :: string
   !< string = str_ascii('I was DEFAULT kind, but now I am ASCII')
   !< print "(A)", string
   !<```
   !=> I was DEFAULT kind, but now I am ASCII <<<
   character(len=*), intent(in)              :: input  !< Input string of default kind.
   character(len=:, kind=ASCII), allocatable :: output !< Output string of ASCII kind.

   output = input
   endfunction str_ascii_default