return the sorted position of a value in the given dynamic array
if the value was not found, - return 0 if nextifnotfound = .false. - return position at the end if nextifnotfound = .true.
binary search on sorted list
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(dyn_labelarray_type), | intent(in) | :: | me | |||
| character(len=*), | intent(in) | :: | val | |||
| logical, | intent(in), | optional | :: | nextifnotfound | flag to indicate, if the next entry in the list should be returned, if the searched one is not found. |
|
| integer, | intent(in), | optional | :: | lower | ||
| integer, | intent(in), | optional | :: | upper |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| logical, | public | :: | retnext | ||||
| integer, | public | :: | lb | ||||
| integer, | public | :: | ub | ||||
| integer, | public | :: | mid | ||||
| character(len=labellen), | public | :: | lb_val | ||||
| character(len=labellen), | public | :: | ub_val | ||||
| character(len=labellen), | public | :: | mid_val |