get_by_name_chars Function

private function get_by_name_chars(this, name) result(p)

Arguments

Type IntentOptional AttributesName
type(fson_value), pointer:: this
character(len=*), intent(in) :: name

Return Value type(fson_value), pointer


Contents

Source Code


Source Code

  function get_by_name_chars(this, name) result(p)
    use fson_string_m, only: fson_string, fson_string_create
    implicit none

    type(fson_value), pointer :: this, p
    character(len=*), intent(in) :: name

    type(fson_string), pointer :: string

    ! convert the char array into a string
    string => fson_string_create(name)

    p => get_by_name_string(this, string)

  end function get_by_name_chars