functionlast_separatorpure
pure integer function last_separator(path)
The position of the last separator in path, / or \, or 0.
Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
| path | character(len=*) | in | the path |
Result
| Name | Type | Attributes | Description |
|---|---|---|---|
| last_separator | integer |
Called by
- add_node
- assign_pages
- display_length
- display_name
- include_directive
- index_entity_names
- logo_name
- matches
- page_directories
- read_page
Source
Show the code
pure integer function last_separator(path)
character(len=*), intent(in) :: path !! the path
last_separator = max(index(path, '/', back=.true.), index(path, '\', back=.true.))
end function last_separator