fdoc

functionsection_idpureprivate

pure character(len=len(title)) function section_id(title) result(id)

An anchor for the section titled title.

Arguments

NameTypeIntentAttributesDescription
titlecharacter(len=*)in

the title

Result

NameTypeAttributesDescription
idcharacter(len=len(title))private

Source

Show the code
pure function section_id(title) result(id)
    character(len=*), intent(in) :: title   !! the title
    character(len=len(title)) :: id
    integer :: k

    id = lowercase(title)
    do k = 1, len(id)
        if (id(k:k) == ' ') id(k:k) = '-'
    end do
end function section_id

Graphs

Called by