Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


EndsWith

Checks if the StringView ends with the character c.
Read time 1 minuteLast updated 6 days ago

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.