StringView Constructor

Declaration

public StringView(string baseString);

Parameters

baseString The base string.

Description

Constructs a StringView over an entire string.


Declaration

public StringView(string baseString, int startIndex);

Parameters

baseString The base string.
startIndex The starting index of the view.

Description

Constructs a StringView from a string, starting at index startIndex.


Declaration

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.

Description

Constructs a StringView from a string, starting at index startIndex and ending at, but not including, index endIndex.


Did you find this page useful? Please give it a rating: