Version: 2022.3

StringViewConstructor

切换到手册
public StringView (string baseString);

参数

baseString The base string.

描述

Constructs a StringView over an entire string.


public StringView (string baseString, int startIndex);

参数

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

描述

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


public StringView (string baseString, int startIndex, int endIndex);

参数

baseString The base string.
startIndex The starting index of the view.
endIndex The exclusive ending index of the view.

描述

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