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~stringlist_type stringlist_type type~stringlist_type->type~string_type stringarray

Contents

Source Code


Constructor

public interface string_type

Constructor for new string instances

  • public elemental function new_string(string) result(new)

    Arguments

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

    Return Value type(string_type)

  • public elemental function new_string_from_integer_int16(val) result(new)

    Arguments

    Type IntentOptional AttributesName
    integer(kind=int16), intent(in) :: val

    Return Value type(string_type)

  • public elemental function new_string_from_integer_int32(val) result(new)

    Arguments

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

    Return Value type(string_type)

  • public elemental function new_string_from_integer_int64(val) result(new)

    Arguments

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

    Return Value type(string_type)

  • public elemental function new_string_from_integer_int8(val) result(new)

    Arguments

    Type IntentOptional AttributesName
    integer(kind=int8), intent(in) :: val

    Return Value type(string_type)

  • public elemental function new_string_from_logical_c_bool(val) result(new)

    Arguments

    Type IntentOptional AttributesName
    logical(kind=c_bool), intent(in) :: val

    Return Value type(string_type)

  • public elemental function new_string_from_logical_lk(val) result(new)

    Arguments

    Type IntentOptional AttributesName
    logical(kind=lk), 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