functionsection_idpureprivate
pure character(len=len(title)) function section_id(title) result(id)
An anchor for the section titled title.
Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
| title | character(len=*) | in | the title |
Result
| Name | Type | Attributes | Description |
|---|---|---|---|
| id | character(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