Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


StringView

Constructs a StringView over an entire string.
Read time 1 minuteLast updated 6 days ago

Definition

StringView(string)

Constructs a StringView over an entire string.
public StringView(string baseString)

Parameters

baseString

The base string.

StringView(string, int)

Constructs a StringView from a string, starting at index startIndex.
public StringView(string baseString, int startIndex)

Parameters

baseString

The base string.

startIndex

The starting index of the view.

StringView(string, int, int)

Constructs a StringView from a string, starting at index startIndex and ending at, but not including, index endIndex.
public StringView(string baseString, int startIndex, int endIndex)

Parameters

baseString

The base string.

startIndex

The starting index of the view.

endIndex

The exclusive ending index of the view.