to_num_from_stream Interface

public interface to_num_from_stream

Conversion of a stream of values in a string to numbers (Specification)


Module Procedures

private function to_int8_from_stream(s, mold, stat) result(v)

Arguments

Type IntentOptional Attributes Name
character(len=:), pointer :: s

input string

integer(kind=int8), intent(in) :: mold

dummy argument to disambiguate at compile time the generic interface

integer(kind=int8), intent(inout), optional :: stat

Return Value integer(kind=int8)

Output integer(int8) value

private function to_int16_from_stream(s, mold, stat) result(v)

Arguments

Type IntentOptional Attributes Name
character(len=:), pointer :: s

input string

integer(kind=int16), intent(in) :: mold

dummy argument to disambiguate at compile time the generic interface

integer(kind=int8), intent(inout), optional :: stat

Return Value integer(kind=int16)

Output integer(int16) value

private function to_int32_from_stream(s, mold, stat) result(v)

Arguments

Type IntentOptional Attributes Name
character(len=:), pointer :: s

input string

integer(kind=int32), intent(in) :: mold

dummy argument to disambiguate at compile time the generic interface

integer(kind=int8), intent(inout), optional :: stat

Return Value integer(kind=int32)

Output integer(int32) value

private function to_int64_from_stream(s, mold, stat) result(v)

Arguments

Type IntentOptional Attributes Name
character(len=:), pointer :: s

input string

integer(kind=int64), intent(in) :: mold

dummy argument to disambiguate at compile time the generic interface

integer(kind=int8), intent(inout), optional :: stat

Return Value integer(kind=int64)

Output integer(int64) value

private function to_sp_from_stream(s, mold, stat) result(v)

Arguments

Type IntentOptional Attributes Name
character(len=:), pointer :: s

input string

real(kind=sp), intent(in) :: mold

dummy argument to disambiguate at compile time the generic interface

integer(kind=int8), intent(inout), optional :: stat

Return Value real(kind=sp)

Output real(sp) value

private function to_dp_from_stream(s, mold, stat) result(v)

Arguments

Type IntentOptional Attributes Name
character(len=:), pointer :: s

input string

real(kind=dp), intent(in) :: mold

dummy argument to disambiguate at compile time the generic interface

integer(kind=int8), intent(inout), optional :: stat

Return Value real(kind=dp)

Output real(dp) value