stdlib_stringlist_type 模块



变量

类型 可见性 属性 名称 初始值
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)

接口

public interface bidx

返回表示反向索引的 'stringlist_index_type' 类型实例 规范

  • private pure function backward_index(idx)

    返回表示反向索引 'idx' 的 'stringlist_index_type' 类型实例

    参数

    类型 意图可选 属性 名称
    integer, intent(in) :: idx

    返回值 type(stringlist_index_type)

public interface fidx

返回表示正向索引的 'stringlist_index_type' 类型实例 规范

  • private pure function forward_index(idx)

    返回表示正向索引 'idx' 的 'stringlist_index_type' 类型实例

    参数

    类型 意图可选 属性 名称
    integer, intent(in) :: idx

    返回值 type(stringlist_index_type)

public interface operator(//)

将字符串列表与输入实体连接,返回一个新的字符串列表 规范

  • private function append_char(lhs, rhs)

    将字符标量 'rhs' 附加到字符串列表 'list' 中,返回一个新的字符串列表

    参数

    类型 意图可选 属性 名称
    type(stringlist_type), intent(in) :: lhs
    character(len=*), intent(in) :: rhs

    返回值 type(stringlist_type)

  • private function append_string(lhs, rhs)

    将字符串 'rhs' 附加到字符串列表 'list' 中,返回一个新的字符串列表

    参数

    类型 意图可选 属性 名称
    type(stringlist_type), intent(in) :: lhs
    type(string_type), intent(in) :: rhs

    返回值 type(stringlist_type)

  • private function prepend_char(lhs, rhs)

    将字符标量 'lhs' 预置到字符串列表 'rhs' 中,返回一个新的字符串列表

    参数

    类型 意图可选 属性 名称
    character(len=*), intent(in) :: lhs
    type(stringlist_type), intent(in) :: rhs

    返回值 type(stringlist_type)

  • private function prepend_string(lhs, rhs)

    将字符串 'lhs' 预置到字符串列表 'rhs' 中,返回一个新的字符串列表

    参数

    类型 意图可选 属性 名称
    type(string_type), intent(in) :: lhs
    type(stringlist_type), intent(in) :: rhs

    返回值 type(stringlist_type)

  • private function append_stringlist(lhs, rhs)

    将字符串列表 'rhs' 附加到字符串列表 'lhs' 中,返回一个新的字符串列表

    参数

    类型 意图可选 属性 名称
    type(stringlist_type), intent(in) :: lhs
    type(stringlist_type), intent(in) :: rhs

    返回值 type(stringlist_type)

  • private function append_carray(lhs, rhs)

    将字符数组 'rhs' 附加到字符串列表 'lhs' 中,返回一个新的字符串列表

    参数

    类型 意图可选 属性 名称
    type(stringlist_type), intent(in) :: lhs
    character(len=*), intent(in), dimension(:) :: rhs

    返回值 type(stringlist_type)

  • private function append_sarray(lhs, rhs)

    将字符串数组 'rhs' 附加到字符串列表 'lhs' 中,返回一个新的字符串列表

    参数

    类型 意图可选 属性 名称
    type(stringlist_type), intent(in) :: lhs
    type(string_type), intent(in), dimension(:) :: rhs

    返回值 type(stringlist_type)

  • private function prepend_carray(lhs, rhs)

    将字符数组 'lhs' 预置到字符串列表 'rhs' 中,返回一个新的字符串列表

    参数

    类型 意图可选 属性 名称
    character(len=*), intent(in), dimension(:) :: lhs
    type(stringlist_type), intent(in) :: rhs

    返回值 type(stringlist_type)

  • private function prepend_sarray(lhs, rhs)

    将字符串数组 'lhs' 预置到字符串列表 'rhs' 中,返回一个新的字符串列表

    参数

    类型 意图可选 属性 名称
    type(string_type), intent(in), dimension(:) :: lhs
    type(stringlist_type), intent(in) :: rhs

    返回值 type(stringlist_type)

public interface operator(/=)

将字符串列表与输入实体进行不等比较,返回逻辑值 规范

  • private pure function ineq_stringlist(lhs, rhs)

    将字符串列表 'lhs' 与字符串列表 'rhs' 进行不等比较,返回逻辑值

    参数

    类型 意图可选 属性 名称
    type(stringlist_type), intent(in) :: lhs
    type(stringlist_type), intent(in) :: rhs

    返回值 logical

  • private pure function ineq_stringlist_carray(lhs, rhs)

    将字符串列表 'lhs' 与字符数组 'rhs' 进行不等比较,返回逻辑值

    参数

    类型 意图可选 属性 名称
    type(stringlist_type), intent(in) :: lhs
    character(len=*), intent(in), dimension(:) :: rhs

    返回值 logical

  • private pure function ineq_stringlist_sarray(lhs, rhs)

    将字符串列表 'lhs' 与字符串数组 'rhs' 进行不等比较,返回逻辑值

    参数

    类型 意图可选 属性 名称
    type(stringlist_type), intent(in) :: lhs
    type(string_type), intent(in), dimension(:) :: rhs

    返回值 logical

  • private pure function ineq_carray_stringlist(lhs, rhs)

    将字符数组 'lhs' 与字符串列表 'rhs' 进行不等比较,返回逻辑值

    参数

    类型 意图可选 属性 名称
    character(len=*), intent(in), dimension(:) :: lhs
    type(stringlist_type), intent(in) :: rhs

    返回值 logical

  • private pure function ineq_sarray_stringlist(lhs, rhs)

    将字符串数组 'lhs' 与字符串列表 'rhs' 进行不等比较,返回逻辑值

    参数

    类型 意图可选 属性 名称
    type(string_type), intent(in), dimension(:) :: lhs
    type(stringlist_type), intent(in) :: rhs

    返回值 logical

public interface operator(==)

将字符串列表与输入实体进行等值比较,返回逻辑值 规范

  • private pure function eq_stringlist(lhs, rhs)

    将字符串列表 'lhs' 与字符串列表 'rhs' 进行等值比较,返回逻辑值

    参数

    类型 意图可选 属性 名称
    type(stringlist_type), intent(in) :: lhs
    type(stringlist_type), intent(in) :: rhs

    返回值 logical

  • private pure function eq_stringlist_carray(lhs, rhs)

    将字符串列表 'lhs' 与字符数组 'rhs' 进行等值比较,返回逻辑值

    参数

    类型 意图可选 属性 名称
    type(stringlist_type), intent(in) :: lhs
    character(len=*), intent(in), dimension(:) :: rhs

    返回值 logical

  • private pure function eq_stringlist_sarray(lhs, rhs)

    将字符串列表 'lhs' 与字符串数组 'rhs' 进行等值比较,返回逻辑值

    参数

    类型 意图可选 属性 名称
    type(stringlist_type), intent(in) :: lhs
    type(string_type), intent(in), dimension(:) :: rhs

    返回值 logical

  • private pure function eq_carray_stringlist(lhs, rhs)

    将字符数组 'lhs' 与字符串列表 'rhs' 进行等值比较,返回逻辑值

    参数

    类型 意图可选 属性 名称
    character(len=*), intent(in), dimension(:) :: lhs
    type(stringlist_type), intent(in) :: rhs

    返回值 logical

  • private pure function eq_sarray_stringlist(lhs, rhs)

    将字符串数组 'lhs' 与字符串列表 'rhs' 进行等值比较,返回逻辑值

    参数

    类型 意图可选 属性 名称
    type(string_type), intent(in), dimension(:) :: lhs
    type(stringlist_type), intent(in) :: rhs

    返回值 logical

public interface stringlist_type

字符串列表构造函数,返回 stringlist_type 类型实例 规范

  • private pure function new_stringlist()

    无参数构造函数,返回一个新的字符串列表实例

    参数

    返回值 type(stringlist_type)

  • private pure function new_stringlist_carray(array)

    将字符数组转换为字符串列表的构造函数,返回一个新的字符串列表实例

    参数

    类型 意图可选 属性 名称
    character(len=*), intent(in), dimension(:) :: array

    返回值 type(stringlist_type)

  • private pure function new_stringlist_sarray(array)

    将字符串数组转换为字符串列表的构造函数,返回一个新的字符串列表实例

    参数

    类型 意图可选 属性 名称
    type(string_type), intent(in), dimension(:) :: array

    返回值 type(stringlist_type)


派生类型

type, public ::  stringlist_index_type

type, public ::  stringlist_type

构造函数

字符串列表构造函数,返回 stringlist_type 类型实例 规范

private pure function new_stringlist ()

无参数构造函数,返回一个新的字符串列表实例

private pure function new_stringlist_carray (array)

将字符数组转换为字符串列表的构造函数,返回一个新的字符串列表实例

private pure function new_stringlist_sarray (array)

将字符串数组转换为字符串列表的构造函数,返回一个新的字符串列表实例

类型绑定过程

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