stdlib_stringlist_type Module


Uses

  • module~~stdlib_stringlist_type~~UsesGraph module~stdlib_stringlist_type stdlib_stringlist_type module~stdlib_string_type stdlib_string_type module~stdlib_stringlist_type->module~stdlib_string_type module~stdlib_math stdlib_math module~stdlib_stringlist_type->module~stdlib_math module~stdlib_kinds stdlib_kinds module~stdlib_string_type->module~stdlib_kinds module~stdlib_optval stdlib_optval module~stdlib_string_type->module~stdlib_optval module~stdlib_ascii stdlib_ascii module~stdlib_string_type->module~stdlib_ascii module~stdlib_math->module~stdlib_kinds module~stdlib_math->module~stdlib_optval iso_fortran_env iso_fortran_env module~stdlib_kinds->iso_fortran_env iso_c_binding iso_c_binding module~stdlib_kinds->iso_c_binding module~stdlib_optval->module~stdlib_kinds module~stdlib_ascii->module~stdlib_kinds

Contents


Variables

TypeVisibility AttributesNameInitial
type(stringlist_index_type), public, parameter:: list_head =stringlist_index_type(.true., 1)
type(stringlist_index_type), public, parameter:: list_tail =stringlist_index_type(.false., 1)

Interfaces

public interface bidx

Returns an instance of type 'stringlist_index_type' representing backward index Specifications

  • private pure function backward_index(idx)

    Returns an instance of type 'stringlist_index_type' representing backward index 'idx'

    Arguments

    Type IntentOptional AttributesName
    integer, intent(in) :: idx

    Return Value type(stringlist_index_type)

public interface fidx

Returns an instance of type 'stringlist_index_type' representing forward index Specifications

  • private pure function forward_index(idx)

    Returns an instance of type 'stringlist_index_type' representing forward index 'idx'

    Arguments

    Type IntentOptional AttributesName
    integer, intent(in) :: idx

    Return Value type(stringlist_index_type)

public interface operator(//)

Concatenates stringlist with the input entity Returns a new stringlist Specifications

  • private function append_char(lhs, rhs)

    Appends character scalar 'rhs' to the stringlist 'list' Returns a new stringlist

    Arguments

    Type IntentOptional AttributesName
    type(stringlist_type), intent(in) :: lhs
    character(len=*), intent(in) :: rhs

    Return Value type(stringlist_type)

  • private function append_string(lhs, rhs)

    Appends string 'rhs' to the stringlist 'list' Returns a new stringlist

    Arguments

    Type IntentOptional AttributesName
    type(stringlist_type), intent(in) :: lhs
    type(string_type), intent(in) :: rhs

    Return Value type(stringlist_type)

  • private function prepend_char(lhs, rhs)

    Prepends character scalar 'lhs' to the stringlist 'rhs' Returns a new stringlist

    Arguments

    Type IntentOptional AttributesName
    character(len=*), intent(in) :: lhs
    type(stringlist_type), intent(in) :: rhs

    Return Value type(stringlist_type)

  • private function prepend_string(lhs, rhs)

    Prepends string 'lhs' to the stringlist 'rhs' Returns a new stringlist

    Arguments

    Type IntentOptional AttributesName
    type(string_type), intent(in) :: lhs
    type(stringlist_type), intent(in) :: rhs

    Return Value type(stringlist_type)

  • private function append_stringlist(lhs, rhs)

    Appends stringlist 'rhs' to the stringlist 'lhs' Returns a new stringlist

    Arguments

    Type IntentOptional AttributesName
    type(stringlist_type), intent(in) :: lhs
    type(stringlist_type), intent(in) :: rhs

    Return Value type(stringlist_type)

  • private function append_carray(lhs, rhs)

    Appends chararray 'rhs' to the stringlist 'lhs' Returns a new stringlist

    Arguments

    Type IntentOptional AttributesName
    type(stringlist_type), intent(in) :: lhs
    character(len=*), intent(in), dimension(:):: rhs

    Return Value type(stringlist_type)

  • private function append_sarray(lhs, rhs)

    Appends stringarray 'rhs' to the stringlist 'lhs' Returns a new stringlist

    Arguments

    Type IntentOptional AttributesName
    type(stringlist_type), intent(in) :: lhs
    type(string_type), intent(in), dimension(:):: rhs

    Return Value type(stringlist_type)

  • private function prepend_carray(lhs, rhs)

    Prepends chararray 'lhs' to the stringlist 'rhs' Returns a new stringlist

    Arguments

    Type IntentOptional AttributesName
    character(len=*), intent(in), dimension(:):: lhs
    type(stringlist_type), intent(in) :: rhs

    Return Value type(stringlist_type)

  • private function prepend_sarray(lhs, rhs)

    Prepends stringarray 'lhs' to the stringlist 'rhs' Returns a new stringlist

    Arguments

    Type IntentOptional AttributesName
    type(string_type), intent(in), dimension(:):: lhs
    type(stringlist_type), intent(in) :: rhs

    Return Value type(stringlist_type)

public interface operator(/=)

Compares stringlist for inequality with the input entity Returns a logical Specifications

  • private pure function ineq_stringlist(lhs, rhs)

    Compares stringlist 'lhs' for inequality with stringlist 'rhs' Returns a logical

    Arguments

    Type IntentOptional AttributesName
    type(stringlist_type), intent(in) :: lhs
    type(stringlist_type), intent(in) :: rhs

    Return Value logical

  • private pure function ineq_stringlist_carray(lhs, rhs)

    Compares stringlist 'lhs' for inequality with chararray 'rhs' Returns a logical

    Arguments

    Type IntentOptional AttributesName
    type(stringlist_type), intent(in) :: lhs
    character(len=*), intent(in), dimension(:):: rhs

    Return Value logical

  • private pure function ineq_stringlist_sarray(lhs, rhs)

    Compares stringlist 'lhs' for inequality with stringarray 'rhs' Returns a logical

    Arguments

    Type IntentOptional AttributesName
    type(stringlist_type), intent(in) :: lhs
    type(string_type), intent(in), dimension(:):: rhs

    Return Value logical

  • private pure function ineq_carray_stringlist(lhs, rhs)

    Compares chararray 'lhs' for inequality with stringlist 'rhs' Returns a logical

    Arguments

    Type IntentOptional AttributesName
    character(len=*), intent(in), dimension(:):: lhs
    type(stringlist_type), intent(in) :: rhs

    Return Value logical

  • private pure function ineq_sarray_stringlist(lhs, rhs)

    Compares stringarray 'lhs' for inequality with stringlist 'rhs' Returns a logical

    Arguments

    Type IntentOptional AttributesName
    type(string_type), intent(in), dimension(:):: lhs
    type(stringlist_type), intent(in) :: rhs

    Return Value logical

public interface operator(==)

Compares stringlist for equality with the input entity Returns a logical Specifications

  • private pure function eq_stringlist(lhs, rhs)

    Compares stringlist 'lhs' for equality with stringlist 'rhs' Returns a logical

    Arguments

    Type IntentOptional AttributesName
    type(stringlist_type), intent(in) :: lhs
    type(stringlist_type), intent(in) :: rhs

    Return Value logical

  • private pure function eq_stringlist_carray(lhs, rhs)

    Compares stringlist 'lhs' for equality with chararray 'rhs' Returns a logical

    Arguments

    Type IntentOptional AttributesName
    type(stringlist_type), intent(in) :: lhs
    character(len=*), intent(in), dimension(:):: rhs

    Return Value logical

  • private pure function eq_stringlist_sarray(lhs, rhs)

    Compares stringlist 'lhs' for equality with stringarray 'rhs' Returns a logical

    Arguments

    Type IntentOptional AttributesName
    type(stringlist_type), intent(in) :: lhs
    type(string_type), intent(in), dimension(:):: rhs

    Return Value logical

  • private pure function eq_carray_stringlist(lhs, rhs)

    Compares chararray 'lhs' for equality with stringlist 'rhs' Returns a logical

    Arguments

    Type IntentOptional AttributesName
    character(len=*), intent(in), dimension(:):: lhs
    type(stringlist_type), intent(in) :: rhs

    Return Value logical

  • private pure function eq_sarray_stringlist(lhs, rhs)

    Compares stringarray 'lhs' for equality with stringlist 'rhs' Returns a logical

    Arguments

    Type IntentOptional AttributesName
    type(string_type), intent(in), dimension(:):: lhs
    type(stringlist_type), intent(in) :: rhs

    Return Value logical

public interface stringlist_type

Constructor for stringlist Returns an instance of type stringlist_type Specifications

  • private pure function new_stringlist()

    Constructor with no argument Returns a new instance of type stringlist

    Arguments

    None

    Return Value type(stringlist_type)

  • private pure function new_stringlist_carray(array)

    Constructor to convert chararray to stringlist Returns a new instance of type stringlist

    Arguments

    Type IntentOptional AttributesName
    character(len=*), intent(in), dimension(:):: array

    Return Value type(stringlist_type)

  • private pure function new_stringlist_sarray(array)

    Constructor to convert stringarray to stringlist Returns a new instance of type stringlist

    Arguments

    Type IntentOptional AttributesName
    type(string_type), intent(in), dimension(:):: array

    Return Value type(stringlist_type)


Derived Types

type, public :: stringlist_index_type

type, public :: stringlist_type

Constructor

Constructor for stringlist Returns an instance of type stringlist_type Specifications

private pure function new_stringlist()

Constructor with no argument Returns a new instance of type stringlist

private pure function new_stringlist_carray(array)

Constructor to convert chararray to stringlist Returns a new instance of type stringlist

private pure function new_stringlist_sarray(array)

Constructor to convert stringarray to stringlist Returns a new instance of type stringlist

Type-Bound Procedures

procedure, public :: clear => clear_list
generic, public :: get => get_string_idx
generic, public :: insert_at => insert_at_char_idx, insert_at_string_idx, insert_at_stringlist_idx, insert_at_chararray_idx, insert_at_stringarray_idx
procedure, public :: len => length_list