to_upper Function

public pure function to_upper(string) result(upper_string)

Convert character variable to upper case (Specification)

Version: experimental

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: string

Return Value character(len=len(string))


Contents

Source Code


Variables

TypeVisibility AttributesNameInitial
integer, public :: i

Source Code

    pure function to_upper(string) result(upper_string)
        character(len=*), intent(in) :: string
        character(len=len(string)) :: upper_string
        integer :: i

        do i = 1, len(string)
            upper_string(i:i) = char_to_upper(string(i:i))
        end do

    end function to_upper