str Interface

public interface str

@brief Convert to Fortran string

@author Oskar Weser

@details It is a generic procedure that accepts int32 or int64.

@param[in] An int32 or int64.


Contents


Module Procedures

private pure function int32_to_str(i) result(str)

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in) :: i

Return Value character(len=:), allocatable

private pure function int64_to_str(i) result(str)

Arguments

Type IntentOptional Attributes Name
integer(kind=int64), intent(in) :: i

Return Value character(len=:), allocatable

private pure function realsp_to_str(x, after_comma) result(res)

Arguments

Type IntentOptional Attributes Name
real(kind=sp), intent(in) :: x
integer, intent(in) :: after_comma

Return Value character(len=:), allocatable

private pure function realdp_to_str(x, after_comma) result(res)

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: x
integer, intent(in) :: after_comma

Return Value character(len=:), allocatable

private pure function bool_to_str(cond) result(res)

Arguments

Type IntentOptional Attributes Name
logical, intent(in) :: cond

Return Value character(len=:), allocatable