cli_has Function

private pure function cli_has(this, name) result(r)

Whether name was declared at all.

Type Bound

cli_t

Arguments

Type IntentOptional Attributes Name
class(cli_t), intent(in) :: this
character(len=*), intent(in) :: name

Long name to look for.

Return Value logical


Calls

proc~~cli_has~~CallsGraph proc~cli_has cli_t%cli_has proc~cli_find cli_t%cli_find proc~cli_has->proc~cli_find

Source Code

   pure function cli_has(this, name) result(r)
      !! Whether `name` was declared at all.
      class(cli_t), intent(in) :: this
      character(len=*), intent(in) :: name
         !! Long name to look for.
      logical :: r

      r = this%find(name) > 0_default_int
   end function cli_has