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_object(string) result(character_string)

Return the character sequence represented by the string.

Arguments

Type IntentOptional AttributesName
class(string_class), intent(in) :: string

Return Value character(len=:), allocatable

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

Return the character sequence represented by the string.

Arguments

Type IntentOptional AttributesName
class(string_class), intent(in) :: string
integer, intent(in) :: pos

Return Value character(len=1)

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

Return the character sequence represented by the string.

Arguments

Type IntentOptional AttributesName
class(string_class), intent(in) :: string
integer, intent(in) :: start
integer, intent(in) :: last

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