System::Text::StringBuilder::Insert 方法

StringBuilder::Insert(int, const System::ArrayPtr<char_t>&, int, int) method

在构建器的固定位置插入字符序列。

StringBuilder * System::Text::StringBuilder::Insert(int index, const System::ArrayPtr<char_t> &chars, int startIndex, int charCount)
ParameterType描述
索引int要插入字符的位置。
charsconst System::ArrayPtr<char_t>&Array 用于插入切片的来源。
startIndexintArray 切片起始索引。
charCountintArray 切片长度。

ReturnValue

此指针。

另见

StringBuilder::Insert(int, char_t) method

在构建器的固定位置插入字符。

StringBuilder * System::Text::StringBuilder::Insert(int startIndex, char_t ch)
ParameterType描述
startIndexint要插入字符的位置。
chchar_t要插入的字符。

ReturnValue

此指针。

另见

StringBuilder::Insert(int, const String&) method

在构建器的固定位置插入字符串。

StringBuilder * System::Text::StringBuilder::Insert(int startIndex, const String &str)
ParameterType描述
startIndexint要插入字符的位置。
strconst String&String 插入。

ReturnValue

此指针。

另见

StringBuilder::Insert(int, T) method

在构建器的固定位置插入值。

template<typename T> std::enable_if<std::is_arithmetic<T>::value, StringBuilder *>::type System::Text::StringBuilder::Insert(int startIndex, T value)
Parameter描述
Parameter类型。
ParameterType描述
startIndexint要插入字符的位置。
valueT要格式化并插入的值。

ReturnValue

此指针。

另见

StringBuilder::Insert(int32_t, const String&, int32_t) method

在构建器的固定位置插入重复字符串。

StringBuilder * System::Text::StringBuilder::Insert(int32_t index, const String &value, int32_t count)
ParameterType描述
索引int32_t要插入字符的位置。
valueconst String&String 插入。
countint32_t要重复 value 字符串的次数。

ReturnValue

此指针。

另见