Version: 2022.3
public bool EndsWith (char c, stringComparison sc);

参数

c A character.
sc A string comparison option.

返回

bool True if the StringView ends with c, otherwise false.

描述

Checks if the StringView ends with the character c.


public bool EndsWith (string v, stringComparison sc);

参数

v A string.
sc A string comparison option.

返回

bool True if the StringView ends with v, otherwise false.

描述

Checks if the StringView ends with the string v.