functionfind_anywhereprivate
integer function find_anywhere(list, name, entity) result(found)
The entity named name at the top level of the project, or 0.
Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
| list | type(entity_list_t) | in | the entities | |
| name | character(len=*) | in | the name, in lowercase | |
| entity | character(len=*) | in | the class, in lowercase |
Result
| Name | Type | Attributes | Description |
|---|---|---|---|
| found | integer |
Calls
Source
Show the code
integer function find_anywhere(list, name, entity) result(found)
type(entity_list_t), intent(in) :: list !! the entities
character(len=*), intent(in) :: name !! the name, in lowercase
character(len=*), intent(in) :: entity !! the class, in lowercase
integer :: k
found = 0
k = index_find(list%names, name)
do while (k > 0)
if (matches(list, k, name, entity)) then
found = k
return
end if
k = list%next_named(k)
end do
end function find_anywhere