Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


LastIndexOf

Returns the index of the last occurence of another StringView within this one.
Read time 1 minuteLast updated 9 days ago

Definition

LastIndexOf(StringView, StringComparison)

Returns the index of the last occurence of another StringView within this one.
public int LastIndexOf(StringView other, StringComparison sc = StringComparison.Ordinal)

Parameters


A string comparision option.

Returns

Type

Description

intThe last index where the StringView is found, otherwise -1.

LastIndexOf(string, StringComparison)

Returns the index of the last occurence of another StringView within this one.
public int LastIndexOf(string other, StringComparison sc = StringComparison.Ordinal)

Parameters


A string comparision option.

Returns

Type

Description

intThe last index where the StringView is found, otherwise -1.

LastIndexOf(char, StringComparison)

Returns the index of the last occurence of another StringView within this one.
public int LastIndexOf(char other, StringComparison sc = StringComparison.Ordinal)

Parameters


A string comparision option.

Returns

Type

Description

intThe last index where the StringView is found, otherwise -1.