Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IndexOf

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

Definition

IndexOf(StringView, StringComparison)

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

Parameters


A string comparision option.

Returns

Type

Description

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

IndexOf(string, StringComparison)

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

Parameters


A string comparision option.

Returns

Type

Description

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

IndexOf(char, StringComparison)

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

Parameters


A string comparision option.

Returns

Type

Description

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