char Interface

public interface char

Return the character sequence represented by the string.

This method is elemental and returns a scalar character value.


Contents


Module Procedures

private pure function char_string(string) result(character_string)

Return the character sequence represented by the string.

Arguments

Type IntentOptional AttributesName
type(string_type), intent(in) :: string

Return Value character(len=:), allocatable

private elemental function char_string_pos(string, pos) result(character_string)

Return the character sequence represented by the string.

Arguments

Type IntentOptional AttributesName
type(string_type), intent(in) :: string
integer, intent(in) :: pos

Return Value character(len=1)

private pure function char_string_range(string, start, last) result(character_string)

Return the character sequence represented by the string.

Arguments

Type IntentOptional AttributesName
type(string_type), intent(in) :: string
integer, intent(in) :: start
integer, intent(in) :: last

Return Value character(len=last-start+1)