parse Subroutine

private elemental subroutine parse(self, sep, source, error)

Gett section data from a source string.

Arguments

TypeIntentOptionalAttributesName
class(section), intent(inout) :: self

Section data.

character, intent(in) :: sep

Separator of option name/value.

type(string), intent(inout) :: source

String containing section data.

integer(kind=I4P), intent(out) :: error

Error code.


Contents

Source Code


Source Code

  elemental subroutine parse(self, sep, source, error)
  !< Gett section data from a source string.
  class(section), intent(inout) :: self   !< Section data.
  character(*),   intent(in)    :: sep    !< Separator of option name/value.
  type(string),   intent(inout) :: source !< String containing section data.
  integer(I4P),   intent(out)   :: error  !< Error code.

  call self%sanitize_source(sep=sep, source=source, error=error)
  call self%parse_name(source=source, error=error)
  call self%parse_options(sep=sep, source=source, error=error)
  endsubroutine parse