Return the array-index corresponding to the queried style.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | style |
Style definition. |
Index into the styles array.
elemental function style_index(style) !< Return the array-index corresponding to the queried style. character(len=*), intent(in) :: style !< Style definition. integer(int32) :: style_index !< Index into the styles array. integer(int32) :: s !< Counter. style_index = 0 do s=1, size(STYLES, dim=2) if (trim(STYLES(1, s))==trim(adjustl(style))) then style_index = s exit endif enddo endfunction style_index