Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(fson_string), | pointer | :: | this | |||
integer, | intent(in) | :: | i |
recursive character function get_char_at(this, i) result(c)
type(fson_string), pointer :: this
integer, intent(in) :: i
if (i <= this % index) then
c = this % chars(i:i)
else
c = get_char_at(this % next, i - this % index)
end if
end function get_char_at