str Interface

public interface str

Function for returning a character representation of a number.

For a user reference, see str.


Functions

private pure recursive module function str_from_c128(x, locale, fmt, decimals, im) result(x_str)

Arguments

Type IntentOptional Attributes Name
complex(kind=r128), intent(in) :: x
character(len=*), intent(in), optional :: locale
character(len=*), intent(in), optional :: fmt
integer, intent(in), optional :: decimals
character(len=*), intent(in), optional :: im

Return Value character(len=:), allocatable

private pure recursive module function str_from_c64(x, locale, fmt, decimals, im) result(x_str)

Arguments

Type IntentOptional Attributes Name
complex(kind=r64), intent(in) :: x
character(len=*), intent(in), optional :: locale
character(len=*), intent(in), optional :: fmt
integer, intent(in), optional :: decimals
character(len=*), intent(in), optional :: im

Return Value character(len=:), allocatable

private pure recursive module function str_from_c32(x, locale, fmt, decimals, im) result(x_str)

Arguments

Type IntentOptional Attributes Name
complex(kind=r32), intent(in) :: x
character(len=*), intent(in), optional :: locale
character(len=*), intent(in), optional :: fmt
integer, intent(in), optional :: decimals
character(len=*), intent(in), optional :: im

Return Value character(len=:), allocatable

private pure recursive module function str_from_r128(x, locale, fmt, decimals) result(x_str)

Arguments

Type IntentOptional Attributes Name
real(kind=r128), intent(in) :: x
character(len=*), intent(in), optional :: locale
character(len=*), intent(in), optional :: fmt
integer, intent(in), optional :: decimals

Return Value character(len=:), allocatable

private pure recursive module function str_from_r64(x, locale, fmt, decimals) result(x_str)

Arguments

Type IntentOptional Attributes Name
real(kind=r64), intent(in) :: x
character(len=*), intent(in), optional :: locale
character(len=*), intent(in), optional :: fmt
integer, intent(in), optional :: decimals

Return Value character(len=:), allocatable

private pure recursive module function str_from_r32(x, locale, fmt, decimals) result(x_str)

Arguments

Type IntentOptional Attributes Name
real(kind=r32), intent(in) :: x
character(len=*), intent(in), optional :: locale
character(len=*), intent(in), optional :: fmt
integer, intent(in), optional :: decimals

Return Value character(len=:), allocatable

private pure recursive module function str_from_i64(x, fmt) result(x_str)

Arguments

Type IntentOptional Attributes Name
integer(kind=i64), intent(in) :: x
character(len=*), intent(in), optional :: fmt

Return Value character(len=:), allocatable

private pure recursive module function str_from_i32(x, fmt) result(x_str)

Arguments

Type IntentOptional Attributes Name
integer(kind=i32), intent(in) :: x
character(len=*), intent(in), optional :: fmt

Return Value character(len=:), allocatable

private pure recursive module function str_from_i16(x, fmt) result(x_str)

Arguments

Type IntentOptional Attributes Name
integer(kind=i16), intent(in) :: x
character(len=*), intent(in), optional :: fmt

Return Value character(len=:), allocatable

private pure recursive module function str_from_i8(x, fmt) result(x_str)

Arguments

Type IntentOptional Attributes Name
integer(kind=i8), intent(in) :: x
character(len=*), intent(in), optional :: fmt

Return Value character(len=:), allocatable

private pure recursive module function str_from_string(x) result(x_str)

Arguments

Type IntentOptional Attributes Name
class(String), intent(in) :: x

Return Value character(len=:), allocatable

private pure recursive module function str_from_char(x) result(x_str)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: x

Return Value character(len=:), allocatable

private pure recursive module function str_from_empty() result(x_str)

Arguments

None

Return Value character(len=:), allocatable