ドキュメント

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.