operator(//) 接口

public interface operator(//)

函数

private pure module function concat_left(lval, code) result(str)

将转义代码与字符串连接并将其转换为实际的转义序列

参数

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

要添加转义代码的字符串

type(ansi_code), intent(in) :: code

转义序列

返回值 character(len=:), allocatable

连接后的字符串

private pure module function concat_left_str(lval, code) result(str)

将转义代码与字符串连接并将其转换为实际的转义序列

参数

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

要添加转义代码的字符串

type(ansi_code), intent(in) :: code

转义序列

返回值 type(string_type)

连接后的字符串

private pure module function concat_right(code, rval) result(str)

将转义代码与字符串连接并将其转换为实际的转义序列

参数

类型 意图可选 属性 名称
type(ansi_code), intent(in) :: code

转义序列

character(len=*), intent(in) :: rval

要添加转义代码的字符串

返回值 character(len=:), allocatable

连接后的字符串

private pure module function concat_right_str(code, rval) result(str)

将转义代码与字符串连接并将其转换为实际的转义序列

参数

类型 意图可选 属性 名称
type(ansi_code), intent(in) :: code

转义序列

type(string_type), intent(in) :: rval

要添加转义代码的字符串

返回值 type(string_type)

连接后的字符串