기술 자료

Unity Engine

Unity Engine

EndsWith

Checks if the StringView ends with the character c.
읽는 시간 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.