string_type Derived Type

type, public :: string_type
sequence

String type holding an arbitrary sequence of characters.


Inherited by

type~~string_type~~InheritedByGraph type~string_type string_type type~cli_t cli_t type~cli_t->type~string_type program_name, summary type~entry_t entry_t type~cli_t->type~entry_t entries type~entry_t->type~string_type name, short, help, value, default type~frame_t frame_t type~frame_t->type~string_type current, shown type~vector_string_t vector_string_t type~vector_string_t->type~string_type items

Components

Type Visibility Attributes Name Initial
character(len=:), private, allocatable :: raw

Constructor

public interface string_type

Constructor for new string instances

  • private elemental module function new_string(string) result(new)

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in), optional :: string

    Return Value type(string_type)

  • private elemental module function new_string_from_integer_int32(val) result(new)

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int32), intent(in) :: val

    Return Value type(string_type)

  • private elemental module function new_string_from_integer_int64(val) result(new)

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int64), intent(in) :: val

    Return Value type(string_type)

  • private elemental module function new_string_from_logical_fbool(val) result(new)

    Arguments

    Type IntentOptional Attributes Name
    logical(kind=fbool), intent(in) :: val

    Return Value type(string_type)


Source Code

   type :: string_type
      ! Use the sequence statement below as a hack to prevent extending this type.
      ! It is not used for storage association.
      sequence
      private
      character(len=:), allocatable :: raw
   end type string_type