文档

Unity Engine

Unity Engine

EndsWith

Checks if the StringView ends with the character c.
阅读时间1 分钟最后更新于 1 个月前

Definition

EndsWith(char, StringComparison)

Checks if the StringView ends with the character c.
public bool EndsWith(char c, StringComparison sc = StringComparison.Ordinal)

Parameters

A character.

A string comparison option.

Returns

Type

Description

boolTrue if the StringView ends with c, otherwise false.

EndsWith(string, StringComparison)

Checks if the StringView ends with the string v.
public bool EndsWith(string v, StringComparison sc = StringComparison.Ordinal)

Parameters

A string.

A string comparison option.

Returns

Type

Description

boolTrue if the StringView ends with v, otherwise false.