ends_with 接口

public interface ends_with

检查字符串是否以子字符串结尾

版本:实验性


模块过程

private elemental function ends_with_string_string(string, substring) result(match)

检查字符串是否以子字符串结尾

参数

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

返回值 逻辑型

private elemental function ends_with_string_char(string, substring) result(match)

检查字符串是否以子字符串结尾

参数

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

返回值 逻辑型

private elemental function ends_with_char_string(string, substring) result(match)

检查字符串是否以子字符串结尾

参数

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

返回值 逻辑型

private pure function ends_with_char_char(string, substring) result(match)

检查字符串是否以子字符串结尾

参数

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

返回值 逻辑型